From 4b9b37c914cf0bd17e15245da3f1dd712493ace6 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 13 Nov 2012 16:45:54 +0530 Subject: [PATCH] add x-requested-with to allowed cors headers --- chaloBEST/cors/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaloBEST/cors/middleware.py b/chaloBEST/cors/middleware.py index b137ad2..f5f0dd1 100644 --- a/chaloBEST/cors/middleware.py +++ b/chaloBEST/cors/middleware.py @@ -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