Answers for "socket io new server multiple origins"

1

socket io new server multiple origins

const io = new Server(PORT, {
  cors: {
    origin: ['...', '...'],
    ...
  }
 }
 
// Documentation
// https://github.com/expressjs/cors#configuration-options
Posted by: Guest on April-22-2021

Browse Popular Code Answers by Language