Answers for "allow cors with socket io"

6

socket io with cors

const io = require("socket.io")(httpServer, 
  { 
  cors: {    
    origin: "*",    
    methods: ["GET", "POST"]  
  }});
Posted by: Guest on December-25-2020
0

CORS Socket io v2

const io = require('socket.io')(server, { origins: '*:*'});
Posted by: Guest on May-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language