Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

allow x_frame_options django


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.")

Source by devarama.com #
 
PREVIOUS NEXT
Tagged: #django
ADD COMMENT
Topic
Name
1+8 =