Closed Taxtra closed 1 year ago
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
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?