From 86b2c26df2a96d12c685afdebd92af2e7b9781e6 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Tue, 3 Jan 2023 13:45:26 +1100 Subject: [PATCH] Add cors whitelist for socket.io --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 811caa5..892afd5 100644 --- a/app.py +++ b/app.py @@ -56,4 +56,4 @@ def save_request(request): if __name__ == '__main__': # Bind to PORT if defined, otherwise default to 5000. port = int(os.environ.get('PORT', 5000)) - socketio.run(app, host='127.0.0.1', port=port) + socketio.run(app, host='127.0.0.1', port=port, cors_allowed_origins='*')