summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnst Widerberg <ernstwi@kth.se>2021-09-24 09:08:28 +0200
committerErnst Widerberg <ernstwi@kth.se>2021-09-24 09:08:28 +0200
commitcaef9eeb267fa19bf370274538f97efc6d4b8776 (patch)
treeddcec89be190403f8709d53320cb8a3031620d9b
parentf6c1c22c832495d78be8ed2e1286701b760bf156 (diff)
Enable CORS
-rwxr-xr-xsrc/wsgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wsgi.py b/src/wsgi.py
index 49c1c17..ef1e36f 100755
--- a/src/wsgi.py
+++ b/src/wsgi.py
@@ -104,7 +104,7 @@ class EPAdd(CollectorResource):
def init(url_res_map, addr='', port=8000):
- app = falcon.App()
+ app = falcon.App(cors_enable=True)
for url, res in url_res_map:
app.add_route(url, res)
return make_server(addr, port, app)