From 574ed747ebefd6b4f53e310f2d7c9f11c613f49c Mon Sep 17 00:00:00 2001 From: "T. van Riel" <80752652+tvanriel@users.noreply.github.com> Date: Sat, 18 Sep 2021 22:23:02 +0200 Subject: fix: set CORS to * for socketio (#55) --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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() -- cgit