Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

socket io with cors

const io = require("socket.io")(httpServer, 
  { 
  cors: {    
    origin: "*",    
    methods: ["GET", "POST"]  
  }});
Source by socket.io #
 
PREVIOUS NEXT
Tagged: #socket #io #cors
ADD COMMENT
Topic
Name
1+5 =