Skip to content

Commit 1185969

Browse files
committed
Use the same cookie security mode as in production for behavioural consistency
1 parent d25db43 commit 1185969

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

extra/dist/live.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extra/live.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function getSessionId() {
293293
if (typeof sid == 'undefined') {
294294
// Make the cid look similar to production sec-websocket-key clientIds
295295
const newSid = getRandomInt(1000000,10000).toString().padEnd(40,"c04b8f7b594cdeedebc2a8029b82943b0a620815")
296-
Cookie.set('sid', newSid)
296+
Cookie.set('sid', newSid, { sameSite: 'lax' })
297297
return newSid
298298
} else {
299299
return sid

extra/package-lock.json

Lines changed: 24 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)