Autoriser X_Frame_Options Django
X_FRAME_OPTIONS = 'ALLOW-FROM https://example.com/'
Obedient Osprey
X_FRAME_OPTIONS = 'ALLOW-FROM https://example.com/'
from django.http import HttpResponse
from django.views.decorators.clickjacking import xframe_options_exempt
@xframe_options_exempt
def ok_to_load_in_a_frame(request):
return HttpResponse("This page is safe to load in a frame on any site.")
from django.http import HttpResponse
from django.views.decorators.clickjacking import xframe_options_exempt
@xframe_options_exempt
def ok_to_load_in_a_frame(request):
return HttpResponse("This page is safe to load in a frame on any site.")