mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-25 01:12:16 +00:00
Try allow-from header (limited browser support)
This commit is contained in:
@@ -10,7 +10,7 @@ def allow_embed():
|
|||||||
def headers_wrapper(fun):
|
def headers_wrapper(fun):
|
||||||
def wrapped_function(*args, **kwargs):
|
def wrapped_function(*args, **kwargs):
|
||||||
response = fun(*args, **kwargs)
|
response = fun(*args, **kwargs)
|
||||||
response['X-Frame-Options'] = "ALLOW"
|
response['X-Frame-Options'] = "ALLOW-FROM https://forum.nottinghamtec.co.uk/"
|
||||||
return response
|
return response
|
||||||
return wrapped_function
|
return wrapped_function
|
||||||
return headers_wrapper
|
return headers_wrapper
|
||||||
|
|||||||
Reference in New Issue
Block a user