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
i am trying to connect * origin to the admin ui, but it doesn't seem to work.
const io = new Server(server, { cors: { origin: '*', credentials: true, }, }); instrument(io, { auth: false, mode: 'development', });
#35 seems to be the same error
the version in the docs is working for me, but i have to allow all origins.
any solutions?
The text was updated successfully, but these errors were encountered:
docs: add some examples of CORS configuration
b68c8e9
Related: - socketio/socket.io-admin-ui#70 - socketio/socket.io-admin-ui#35 - socketio/socket.io#4716
Hi! If you really need to allow all origins, you can use the following solution:
const io = new Server(httpServer, { cors: { origin: (_req, callback) => { callback(null, true); }, credentials: true } });
Added in the documentation here: https://socket.io/docs/v4/server-options/#cors
Sorry, something went wrong.
No branches or pull requests
i am trying to connect * origin to the admin ui, but it doesn't seem to work.
#35 seems to be the same error
the version in the docs is working for me, but i have to allow all origins.
any solutions?
The text was updated successfully, but these errors were encountered: