From 7a69a8fea0a1dcaea11b2fa5d2852685c9f283cf Mon Sep 17 00:00:00 2001 From: uo288543 Date: Tue, 23 Apr 2024 21:59:50 +0200 Subject: [PATCH] Update security other time --- multiplayer/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }