0👍
It’s the CORS issue, and you need to add cors
option for the socket.io server.
Refer to Handling CORS for Socket.io.
io = require('socket.io')(server, {
cors: {
origin: '*'
}
});
Source:stackexchange.com
0👍
It’s the CORS issue, and you need to add cors
option for the socket.io server.
Refer to Handling CORS for Socket.io.
io = require('socket.io')(server, {
cors: {
origin: '*'
}
});