fix: set CORS to * for socketio (#55)
This commit is contained in:
parent
95d199ed9b
commit
574ed747eb
|
|
@ -47,7 +47,7 @@ class ObjectSerializer(json.JSONEncoder):
|
||||||
|
|
||||||
serializer = ObjectSerializer()
|
serializer = ObjectSerializer()
|
||||||
app = web.Application()
|
app = web.Application()
|
||||||
sio = socketio.AsyncServer()
|
sio = socketio.AsyncServer(cors_allowed_origins='*')
|
||||||
sio.attach(app, socketio_path=config.URL_PREFIX + 'socket.io')
|
sio.attach(app, socketio_path=config.URL_PREFIX + 'socket.io')
|
||||||
routes = web.RouteTableDef()
|
routes = web.RouteTableDef()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue