socket.io-client CORS #4945
Unanswered
idontknowsryd
asked this question in
Q&A
Replies: 1 comment
-
@idontknowsryd are you using a custom parser? In that case, the client must also use the same parser. Reference: https://socket.io/docs/v4/custom-parser/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe I'm asking a stupid question, but I really don't understand.
I have two scripts: socket server and socket client.
socket server:
socket client:
Both scripts work on the local network and do not have access from outside via any domain.
The socket server is started by the HTTP server on port 3000, however the socket client does not require the HTTP server to start the connection.
When I run the client in debug mode
DEBUG=engine,socket.io* node
I get this:What should I specify in the origin on the server in order to successfully connect to my socket?
Beta Was this translation helpful? Give feedback.
All reactions