From caef9eeb267fa19bf370274538f97efc6d4b8776 Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Fri, 24 Sep 2021 09:08:28 +0200 Subject: Enable CORS --- src/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.1