Answers for "socket io http://localhost:8100 is not an accepted origin."

6

socket io with cors

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language