From 7edb65f426ef30768d7a9cf01693f7e72da315ec Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 13 Nov 2012 16:44:25 +0530 Subject: [PATCH] some more tweaking to get CORS to work --- 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 2561d9b..b137ad2 100644 --- a/chaloBEST/cors/middleware.py +++ b/chaloBEST/cors/middleware.py @@ -9,7 +9,7 @@ class AllowOriginMiddleware(object): def process_response(self, request, response): origin = request.META.get('HTTP_ORIGIN') if origin: - response['Access-Control-Allow-Origin'] = origin + response['Access-Control-Allow-Origin'] = '*' response['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS, DELETE, PUT' response['Access-Control-Allow-Headers'] = 'Content-Type, Accept' return response