Commit c5b2a417 authored by Pavel Spirek's avatar Pavel Spirek

ac-allow-origin and ac-allow headers are not user-configurable anymore

parent acc9cd00
......@@ -23,8 +23,6 @@ CONFIG_HTTP = {
"SERVER_NAME": "jetconf-h2",
"UPLOAD_SIZE_LIMIT": 1,
"LISTEN_LOCALHOST_ONLY": False,
"AC_ALLOW_ORIGIN": "http://localhost:3000",
"AC_ALLOW_METHODS": "POST, GET, OPTIONS, PUT, DELETE",
"PORT": 8443,
"SERVER_SSL_CERT": "server.crt",
......
......@@ -179,8 +179,8 @@ class H2Protocol(asyncio.Protocol):
("Content-Length", str(resp.content_length)),
("Server", CONFIG_HTTP["SERVER_NAME"]),
("Cache-Control", "No-Cache"),
("Access-Control-Allow-Origin", CONFIG_HTTP["AC_ALLOW_ORIGIN"]),
("Access-Control-Allow-Methods", CONFIG_HTTP["AC_ALLOW_METHODS"]),
("Access-Control-Allow-Origin", "*"),
("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE"),
("Access-Control-Allow-Headers", "Content-Type")
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment