diff --git a/multiplayer/index.js b/multiplayer/index.js index c5cec2a5..c2b2dbc4 100644 --- a/multiplayer/index.js +++ b/multiplayer/index.js @@ -9,8 +9,8 @@ const app = express(); const server = http.createServer(app); const io = socketIO(server, { cors: { //permit connections from webapp - origin: [process.env.WEBAPP_ENDPOINT, "http://localhost:3000"], - //origin: "*", //this should be changed to improve security + //origin: [process.env.WEBAPP_ENDPOINT, "http://localhost:3000"], + origin: "*", //this should be changed to improve security methods: ["GET", "POST"], allowedHeaders: "*" //this should be changed to improve security }