i got this warning when using https domain and https socket io.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at htt
use this code its work.
app.use( cors({ origin: 'http://localhost:3000', // allow to server to accept request from different origin methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', credentials: true // allow session cookie from browser to pass through }) );