Skip to content

Commit

Permalink
Allowed all headers
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288543 committed Apr 7, 2024
1 parent 720fa27 commit 94074f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion multiplayer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: "*"
}
});

Expand Down

0 comments on commit 94074f5

Please sign in to comment.