How to configure X-Frame-Options in Django to allow iframe embedding of one view?
问题 I'm trying to enable django to allow one specific view to be embedded on external sites, preferabilly without sites restrictions. In my views.py file, I have added the following code, where the view futurebig is the one I want to enable to be embedded: from django.views.decorators.clickjacking import xframe_options_sameorigin ... @xframe_options_sameorigin def futurebig(request): ... return render_to_response('templates/iframe/future_clock_big.html', context_dict, context) which doesn't help