def ensure_csrf_cookie_cross_domain(func):
 def _inner(*args, **kwargs):
  if args:
   request = args[0]
   request.META['CROSS_DOMAIN_CSRF_COOKIE_USED'] = True
  return ensure_csrf_cookie(func)(*args, **kwargs)
 return _inner

def ensure_csrf_cookie_cross_domain ( func ) : def _inner ( * args , ** kwargs ) : if args : request = args [ 0 ] request . META [ 'CROSS_DOMAIN_CSRF_COOKIE_USED' ] = True return ensure_csrf_cookie ( func ) ( * args , ** kwargs ) return _inner
view decorator for sending a cross-domain csrf cookie .