CL-723: Fix content-type

This commit is contained in:
Kirill Chetverikov 2019-08-08 21:02:44 +03:00
parent 0326881c49
commit 4d331ecb50
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ def response(content):
result = HttpResponse(content)
result["Access-Control-Allow-Origin"] = "*"
result["Access-Control-Allow-Methods"] = "GET, POST, DELETE, OPTIONS"
result["Content-Type"] = "application/json"
return result

View File

@ -6,6 +6,7 @@ def response(content):
result = HttpResponse(content)
result["Access-Control-Allow-Origin"] = "*"
result["Access-Control-Allow-Methods"] = "GET, POST, DELETE, OPTIONS"
result["Content-Type"] = "application/json"
return result