Answers for "allow x_frame_options django"

0

allow x_frame_options django

X_FRAME_OPTIONS = 'ALLOW-FROM https://example.com/'
Posted by: Guest on September-19-2021
0

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.")
Posted by: Guest on September-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language