soquete io com cors
const io = require("socket.io")(httpServer,
{
cors: {
origin: "*",
methods: ["GET", "POST"]
}});
Worthy Warrior
const io = require("socket.io")(httpServer,
{
cors: {
origin: "*",
methods: ["GET", "POST"]
}});
const io = require("socket.io")(httpServer, { cors: { origin: "http://localhost:8080", methods: ["GET", "POST"] }});httpServer.listen(3000);