mirror of https://github.com/alexta69/metube
fix: set CORS to * for socketio (#55)
parent
95d199ed9b
commit
574ed747eb
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue