add x-requested-with to allowed cors headers

This commit is contained in:
Sanj 2012-11-13 16:45:54 +05:30
parent 7edb65f426
commit 4b9b37c914

View File

@ -11,5 +11,5 @@ class AllowOriginMiddleware(object):
if origin:
response['Access-Control-Allow-Origin'] = '*'
response['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS, DELETE, PUT'
response['Access-Control-Allow-Headers'] = 'Content-Type, Accept'
response['Access-Control-Allow-Headers'] = 'Content-Type, Accept, X-Requested-With'
return response