diff options
author | Ernst Widerberg <ernstwi@kth.se> | 2021-09-24 09:08:28 +0200 |
---|---|---|
committer | Ernst Widerberg <ernstwi@kth.se> | 2021-09-24 09:08:28 +0200 |
commit | caef9eeb267fa19bf370274538f97efc6d4b8776 (patch) | |
tree | ddcec89be190403f8709d53320cb8a3031620d9b /src/wsgi.py | |
parent | f6c1c22c832495d78be8ed2e1286701b760bf156 (diff) |
Enable CORS
Diffstat (limited to 'src/wsgi.py')
-rwxr-xr-x | src/wsgi.py | 2 |
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) |