From 17b87c093fc61ddb1a2a3510999ea4a7b36e3842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Tue, 21 Jul 2015 14:16:02 +0300 Subject: [PATCH] CORS header for ping call --- hc/api/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hc/api/views.py b/hc/api/views.py index 29e009cd..d69730ee 100644 --- a/hc/api/views.py +++ b/hc/api/views.py @@ -19,7 +19,9 @@ def ping(request, code): check.save() - return HttpResponse("OK") + response = HttpResponse("OK") + response["Access-Control-Allow-Origin"] = "*" + return response def status(request, code):