Skip to content

Commit

Permalink
Update security other time
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288543 committed Apr 23, 2024
1 parent 2ee61c4 commit 7a69a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multiplayer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7a69a8f

Please sign in to comment.