From 94074f5b60e8b5485002bc8e471e057bbbab263a Mon Sep 17 00:00:00 2001 From: uo288543 Date: Sun, 7 Apr 2024 21:25:29 +0200 Subject: [PATCH] Allowed all headers --- multiplayer/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/multiplayer/index.js b/multiplayer/index.js index b6f93b47..812aa844 100644 --- a/multiplayer/index.js +++ b/multiplayer/index.js @@ -11,7 +11,8 @@ 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 - methods: ["GET", "POST"] + methods: ["GET", "POST"], + allowedHeaders: "*" } });