Fixing response headers

This commit is contained in:
Alex Yatskov 2016-07-14 21:51:52 -07:00
parent 63de25e76d
commit 99c06fe744

View File

@ -159,9 +159,9 @@ class AjaxServer:
headers = { headers = {
'HTTP/1.1 200 OK': None, 'HTTP/1.1 200 OK': None,
'Content-Type': 'application/json', 'Content-Type': 'text/json',
'Content-Length': str(len(body)), 'Content-Length': str(len(body)),
'Access-Control-Allow-Origin': '*' 'Access-Control-Allow-Origin': 'http://127.0.0.1'
} }
for key, value in headers.items(): for key, value in headers.items():