allow x frame options django

Solutions on MaxInterview for allow x frame options django by the best coders in the world

showing results for - "allow x frame options django"
Jerónimo
08 Mar 2019
1X_FRAME_OPTIONS = 'ALLOW-FROM https://example.com/'
2
Jorge
29 Jan 2021
1from django.http import HttpResponse
2from django.views.decorators.clickjacking import xframe_options_exempt
3
4@xframe_options_exempt
5def ok_to_load_in_a_frame(request):
6    return HttpResponse("This page is safe to load in a frame on any site.")
7