Skip to content

Instantly share code, notes, and snippets.

@nonZero
Last active December 21, 2015 16:29
Show Gist options
  • Save nonZero/6334336 to your computer and use it in GitHub Desktop.
Save nonZero/6334336 to your computer and use it in GitHub Desktop.
class Iframe(object):
def __init__(self, prm):
self.param = prm
def __call__(self, view):
def df(*args, **kwargs):
for i in args:
if type(i) == WSGIRequest:
host = i.META['HTTP_REFERER']
print host
return xframe_options_exempt(self.view)(*args, **kwargs)
return df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment