“Zezwalaj na x_frame_options django” Kod odpowiedzi

Zezwalaj na x_frame_options django

X_FRAME_OPTIONS = 'ALLOW-FROM https://example.com/'
Obedient Osprey

Zezwalaj na 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.")
Obedient Osprey

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

Black Buzzard

Odpowiedzi podobne do “Zezwalaj na x_frame_options django”

Pytania podobne do “Zezwalaj na x_frame_options django”

Więcej pokrewnych odpowiedzi na “Zezwalaj na x_frame_options django” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu