Try allow-from header (limited browser support)

This commit is contained in:
David Taylor
2016-10-08 17:01:37 +01:00
parent 8a838aa4bd
commit 3f4c362bfa

View File

@@ -10,7 +10,7 @@ def allow_embed():
def headers_wrapper(fun):
def wrapped_function(*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 wrapped_function
return headers_wrapper