diff options
author | T. van Riel <80752652+tvanriel@users.noreply.github.com> | 2021-09-18 22:23:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 23:23:02 +0300 |
commit | 574ed747ebefd6b4f53e310f2d7c9f11c613f49c (patch) | |
tree | 13c4820a22efd30b01b717f48f1c4d7fc03f87f0 | |
parent | fix downloads from private playlists (diff) | |
download | metube-574ed747ebefd6b4f53e310f2d7c9f11c613f49c.tar.gz metube-574ed747ebefd6b4f53e310f2d7c9f11c613f49c.tar.bz2 metube-574ed747ebefd6b4f53e310f2d7c9f11c613f49c.zip |
fix: set CORS to * for socketio (#55)
-rw-r--r-- | app/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
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()
|