Add Access-Control-Allow-Headers * (#231)

This commit is contained in:
Alexander Ryzhikov 2021-02-21 21:24:08 +02:00 committed by GitHub
parent 7ef10e92da
commit 8b81267b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,6 +184,7 @@ class WebServer:
['HTTP/1.1 200 OK', None], ['HTTP/1.1 200 OK', None],
['Content-Type', 'text/json'], ['Content-Type', 'text/json'],
['Access-Control-Allow-Origin', corsOrigin], ['Access-Control-Allow-Origin', corsOrigin],
['Access-Control-Allow-Headers', '*'],
['Content-Length', str(len(body))] ['Content-Length', str(len(body))]
] ]