From 99c06fe744d9642322a1c0f0452bc9a05892ecd5 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 14 Jul 2016 21:51:52 -0700 Subject: [PATCH] Fixing response headers --- anki_connect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki_connect.py b/anki_connect.py index 48681f2..4059f9c 100644 --- a/anki_connect.py +++ b/anki_connect.py @@ -159,9 +159,9 @@ class AjaxServer: headers = { 'HTTP/1.1 200 OK': None, - 'Content-Type': 'application/json', + 'Content-Type': 'text/json', 'Content-Length': str(len(body)), - 'Access-Control-Allow-Origin': '*' + 'Access-Control-Allow-Origin': 'http://127.0.0.1' } for key, value in headers.items():