Disable CORS in Expres.io for socket.io calls
问题 I try to connect from angular to a Express.io socket, but I have error 404 CORS. How can I solve this? XMLHttpRequest cannot load http://localhost:3000/socket.io/?EIO=3&transport=polling&t=1447367208172-29. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. If I load this route directly from browser directly, it works well But from localhost:80 angular to localhot:3000 express.io not works. In my express.io