Answer the question
In order to leave comments, you need to log in
Client interaction error with node.js (Socket.io)?
The bottom line is that a comment pusher is written on the node, everything works fine on the local, on the production the error climbs (I look in the firebug) on the client:
Request from foreign origin blocked: Single origin policy prohibits reading the remote resource on mydomain.com:3000/socket.io/?EIO=3&transport=polli... This can be fixed by moving the resource to the same domain or enabling CORS.
Answer the question
In order to leave comments, you need to log in
This is because you have socket.io on port 3000 while the site itself is on 80m, which is a CORS violation. To solve the problem, you can use one of two methods:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question