mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
fix(sso): update saml cookie settings
This commit is contained in:
parent
88f721b449
commit
87373eaff2
@ -258,7 +258,7 @@ app.use('/ssoauth', (req, res, next) => {
|
||||
Log.error('E_SSO_WRITE_REQ', err);
|
||||
return res.sendStatus(500);
|
||||
}
|
||||
let value = `samltoken="${token}"; SameSite=Strict; HttpOnly`;
|
||||
let value = `samltoken="${token}"; SameSite=Strict; HttpOnly; Path=/; Secure`;
|
||||
res.setHeader('Set-Cookie', value);
|
||||
next();
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user