add x-requested-with to allowed cors headers
This commit is contained in:
parent
7edb65f426
commit
4b9b37c914
|
@ -11,5 +11,5 @@ class AllowOriginMiddleware(object):
|
||||||
if origin:
|
if origin:
|
||||||
response['Access-Control-Allow-Origin'] = '*'
|
response['Access-Control-Allow-Origin'] = '*'
|
||||||
response['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS, DELETE, PUT'
|
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
|
return response
|
||||||
|
|
Loading…
Reference in New Issue
Block a user