From ed319beacbf7b0f35b7e61e7e1747e738c86782a Mon Sep 17 00:00:00 2001 From: "T. van Riel" <80752652+tvanriel@users.noreply.github.com> Date: Sat, 18 Sep 2021 18:59:20 +0200 Subject: [PATCH] fix: set CORS to * for socketio --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 9469214..368db16 100644 --- a/app/main.py +++ b/app/main.py @@ -47,7 +47,7 @@ class ObjectSerializer(json.JSONEncoder): serializer = ObjectSerializer() app = web.Application() -sio = socketio.AsyncServer() +sio = socketio.AsyncServer(cors_allowed_origins='*') sio.attach(app, socketio_path=config.URL_PREFIX + 'socket.io') routes = web.RouteTableDef()