From cb51838f8f933dfc76bc913a8fb7947fa0277e46 Mon Sep 17 00:00:00 2001 From: Ryan Volz Date: Tue, 11 Apr 2023 15:21:07 -0400 Subject: [PATCH] Make webserver compatible with latest flask-socketio & company. --- web/static/index.html | 2 +- web/webserver.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/static/index.html b/web/static/index.html index 2089b4b..9667715 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -37,7 +37,7 @@
- + diff --git a/web/webserver.py b/web/webserver.py index d1aeefb..97c81df 100755 --- a/web/webserver.py +++ b/web/webserver.py @@ -38,7 +38,7 @@ app = Flask(__name__, static_url_path="") app.config["SECRET_KEY"] = "secret!" -socketio = SocketIO(app) +socketio = SocketIO(app, cors_allowed_origins=f"http://{HTTP_ADDRESS}:{HTTP_PORT}") def zmq_thread():