ERS enable CORS
I added
io.set(‘origins’, ‘*:*’);
in ers.js file to enable CORS. However still the client browser gets error as
XMLHttpRequest cannot load https://mydomain/socket.io/?EIO=3&transport=polling&t=LtcoXHr. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://mydomain’ is therefore not allowed access.
And on the ndoe console I get
info – unhandled socket.io url