Add a header for CORS support

This commit is contained in:
Anže Bertoncelj 2017-12-22 23:53:41 +01:00
parent 9ddb7eb19a
commit 20f1920e06

View File

@ -217,7 +217,8 @@ class AjaxServer:
def resetHeaders(self):
self.headers = [
['HTTP/1.1 200 OK', None],
['Content-Type', 'text/json']
['Content-Type', 'text/json'],
['Access-Control-Allow-Origin', '*']
]
self.extraHeaders = {}