Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

socket io new server multiple origins

const io = new Server(PORT, {
  cors: {
    origin: ['...', '...'],
    ...
  }
 }
 
// Documentation
// https://github.com/expressjs/cors#configuration-options
 
PREVIOUS NEXT
Tagged: #socket #io #server #multiple #origins
ADD COMMENT
Topic
Name
3+4 =