Merge pull request #233 from MDornacher/fix/samesite-lax

fix: use SameSite=Lax for session cookie
This commit is contained in:
Alan Grainger
2026-05-28 07:01:58 +08:00
committed by GitHub
+1 -1
View File
@@ -28,7 +28,7 @@ const app = express()
app.use(cookieSession({
name: 'session',
httpOnly: true,
sameSite: 'strict',
sameSite: 'lax',
secret: crypto.randomBytes(32).toString('base64url')
}))
// For parsing the password unlock form and POSTed JSON payloads