mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
cookies: Use SameSite=None
if in an iframe from another site
This commit is contained in:
parent
bf53162cdd
commit
2db4b04af3
5 changed files with 71 additions and 4 deletions
|
@ -237,9 +237,7 @@ exports.expressConfigure = (hook_name, args, cb) => {
|
|||
name: 'express_sid',
|
||||
proxy: true,
|
||||
cookie: {
|
||||
// `Strict` is not used because it has few security benefits but significant usability
|
||||
// drawbacks vs. `Lax`. See https://stackoverflow.com/q/41841880 for discussion.
|
||||
sameSite: 'Lax',
|
||||
sameSite: settings.cookie.sameSite,
|
||||
/*
|
||||
* The automatic express-session mechanism for determining if the
|
||||
* application is being served over ssl is similar to the one used for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue