aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorT. van Riel <80752652+tvanriel@users.noreply.github.com>2021-09-18 22:23:02 +0200
committerGitHub <noreply@github.com>2021-09-18 23:23:02 +0300
commit574ed747ebefd6b4f53e310f2d7c9f11c613f49c (patch)
tree13c4820a22efd30b01b717f48f1c4d7fc03f87f0 /app
parentfix downloads from private playlists (diff)
downloadmetube-574ed747ebefd6b4f53e310f2d7c9f11c613f49c.tar.gz
metube-574ed747ebefd6b4f53e310f2d7c9f11c613f49c.tar.bz2
metube-574ed747ebefd6b4f53e310f2d7c9f11c613f49c.zip
fix: set CORS to * for socketio (#55)
Diffstat (limited to 'app')
-rw-r--r--app/main.py2
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()
bgstack15