var io = require('socket.io')(6001);
io.on('connection', function(socket){
console.log('New Connection!');
})
var socket = io(':6001');
Access to XMLHttpRequest at 'http://myapp:6001/socket.io/?EIO=4&transport=polling&t=NxPwAZS' from origin 'http://myapp' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.