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