diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-26 12:49:10 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-06-26 12:49:10 +0200 |
commit | f1f4a8291646b02b37aaf667615c1e70aebaa881 (patch) | |
tree | c5c101c810a89374d500660188745a1bd1ebad1e | |
parent | c479b34bc340aaec7df8926321b47cdb5497f2dc (diff) | |
download | server-f1f4a8291646b02b37aaf667615c1e70aebaa881.tar.gz |
Set strict cookies.
-rw-r--r-- | public/join.js | 2 | ||||
-rw-r--r-- | server.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/public/join.js b/public/join.js index 31d2bcc..f69879e 100644 --- a/public/join.js +++ b/public/join.js @@ -93,7 +93,7 @@ function update() { if (ready && (game.owner_id === user_id)) message.innerHTML = "Ready to start..."; else if (ready) - message.innerHTML = "Waiting for game to start..."; + message.innerHTML = `Waiting for ${game.owner_name} to start the game...`; else message.innerHTML = "Waiting for players to join..."; } else { @@ -62,7 +62,7 @@ app.use(express_session({ rolling: true, saveUninitialized: false, store: session_store, - cookie: { maxAge: 7 * 24 * 60 * 60 * 1000 } + cookie: { maxAge: 7 * 24 * 60 * 60 * 1000, sameSite: 'strict' } })); app.use(connect_flash()); |