What is expected if CORS object is empty while initialisation? #5272
Unanswered
arpitkapoor97
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions