def xframe_options_exempt(view_func):
 def wrapped_view(*args, **kwargs):
  resp = view_func(*args, **kwargs)
  resp.xframe_options_exempt = True
  return resp
 return wraps(view_func, assigned=available_attrs(view_func))(wrapped_view)

def xframe_options_exempt ( view_func ) : def wrapped_view ( * args , ** kwargs ) : resp = view_func ( * args , ** kwargs ) resp . xframe_options_exempt = True return resp return wraps ( view_func , assigned = available_attrs ( view_func ) ) ( wrapped_view )
modifies a view function by setting a response variable that instructs xframeoptionsmiddleware to not set the x-frame-options http header .