Answers for "socket io has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource"

1

socket.io cors

const io = require("socket.io")(httpServer, {  cors: {    origin: "http://localhost:8080",    methods: ["GET", "POST"]  }});httpServer.listen(3000);
Posted by: Guest on November-30-2020

Code answers related to "socket io has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource"

Code answers related to "Javascript"

Browse Popular Code Answers by Language