Browse Source

CORS header for ping call

pull/7/head
Pēteris Caune 9 years ago
parent
commit
17b87c093f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      hc/api/views.py

+ 3
- 1
hc/api/views.py View File

@ -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):


Loading…
Cancel
Save