update cors

This commit is contained in:
Fasterino
2025-10-20 21:48:05 +03:00
parent 34b9ce8453
commit affb6c2a2c
3 changed files with 1 additions and 13 deletions

View File

@@ -8,7 +8,7 @@ from .create_room import create_room_router
def get_backend() -> tuple[APIRouter, AsyncServer]:
router = APIRouter(prefix="/api")
sio = AsyncServer(async_mode="asgi")
sio = AsyncServer(async_mode="asgi", cors_allowed_origins="*")
server = Socket(sio)
@sio.on("connect") # type: ignore