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
Originally posted by arpitkapoor97 January 1, 2025 Consider below scenarios, when I am trying to connect a client from a different PORT/URL.
` const app = express(); const server = createServer(app);
const io = new Server(server); // This gives CORS error const io = new Server(server, {}); // This also gives CORS error
const io = new Server(server, { cors: {} });`
// This gives no CORS error. WHY?
PS: I am experimenting this on code spaces so it might behave differently.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Discussed in #5272
Originally posted by arpitkapoor97 January 1, 2025
Consider below scenarios, when I am trying to connect a client from a different PORT/URL.
`
const app = express();
const server = createServer(app);
const io = new Server(server);
// This gives CORS error
const io = new Server(server, {});
// This also gives CORS error
const io = new Server(server, {
cors: {}
});`
// This gives no CORS error. WHY?
PS: I am experimenting this on code spaces so it might behave differently.
The text was updated successfully, but these errors were encountered: