set multiple origins socket io code example
Example: socket io new server multiple origins
const io = new Server(PORT, {
cors: {
origin: ['...', '...'],
...
}
}
// Documentation
// https://github.com/expressjs/cors#configuration-options