def allow_cross_site_request(f):
 @functools.wraps(f)
 def wrapper(request, *args, **kw):
  response = f(request, *args, **kw)
  "If Access-Control-Allow-Credentials isn't set, the browser won't\n        return data required cookies to see.  This is a good thing, let's keep\n        it that way."
  response['Access-Control-Allow-Origin'] = '*'
  response['Access-Control-Allow-Methods'] = 'GET'
  return response
 return wrapper

def allow_cross_site_request ( f ) : @ functools . wraps ( f ) def wrapper ( request , * args , ** kw ) : response = f ( request , * args , ** kw ) response [ 'Access-Control-Allow-Origin' ] = '*' response [ 'Access-Control-Allow-Methods' ] = 'GET' return response return wrapper
allow other sites to access this resource .