diff --git a/server.js b/server.js index 39c6134..011f84c 100644 --- a/server.js +++ b/server.js @@ -13,7 +13,7 @@ const server = http.createServer(app); const io = new Server(server, { cors: { - origin: "*:*", + origin: ['http://localhost:3000','http://localhost:3040','*',"*:*"], methods: ["GET", "POST"], }, });