Getting cors error but I think I'm using the correct v3/v4 syntax--what's wrong? #4012
-
Per the docs here, I need to explicitly enable cors. Here's my server app.js code:
And here's my client app.js code:
I'm getting the CORS error: Is there something different I should be doing to enable cors? Windows v10.0.19042.1052 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi! I think the option is Reference: https://socket.io/docs/v4/handling-cors/ |
Beta Was this translation helpful? Give feedback.
Hi! I think the option is
origin
, and notorigins
. Could you please check?Reference: https://socket.io/docs/v4/handling-cors/