We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, May I know how to enable CORS in Socketify?
I am trying to add any CORS using middleware but it seems doesn't work at all.
async def cors_middleware(req, res): res.set_header("Access-Control-Allow-Origin", "*") res.set_header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS") res.set_header("Access-Control-Allow-Headers", "Content-Type") auth_router = MiddlewareRouter(app, cors_middleware)
The text was updated successfully, but these errors were encountered:
I think returning False/None (this function returns None implicitly) stops execution, so you may wish to return True at the bottom
https://docs.socketify.dev/middlewares.html
Sorry, something went wrong.
No branches or pull requests
Hi, May I know how to enable CORS in Socketify?
I am trying to add any CORS using middleware but it seems doesn't work at all.
The text was updated successfully, but these errors were encountered: