fix: use SameSite=Lax for session cookie
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ const app = express()
|
|||||||
app.use(cookieSession({
|
app.use(cookieSession({
|
||||||
name: 'session',
|
name: 'session',
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
sameSite: 'strict',
|
sameSite: 'lax',
|
||||||
secret: crypto.randomBytes(32).toString('base64url')
|
secret: crypto.randomBytes(32).toString('base64url')
|
||||||
}))
|
}))
|
||||||
// For parsing the password unlock form and POSTed JSON payloads
|
// For parsing the password unlock form and POSTed JSON payloads
|
||||||
|
|||||||
Reference in New Issue
Block a user