pyropy / fastapi-socketio

Easily integrate socket.io with your FastAPI app 🚀
Apache License 2.0
329 stars 31 forks source link

Add allowed CORS origins support #2

Closed pyropy closed 3 years ago

pyropy commented 3 years ago

Add allowed CORS origins support based upon current state of FastAPI app.

If FastAPI app does have CORS middleware mounted set SocketManager allowed origins to empty list.

Passing it empty list will make sure that app doesn't break.

pyropy commented 3 years ago

Resolved in #7 PR 🚀🎉