mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
DEV: Set samesite=lax
on cookies set by client-side (#26559)
Chrome's default is already Lax, so this change is a no-op there. Firefox will soon be follow them, and has started warning about cookies with no samesite attribute. That's the motivation for this commit.
This commit is contained in:
parent
d7f7915558
commit
2a5d4ede6d
@ -36,6 +36,7 @@ function cookie(key, value, options) {
|
||||
options.path ? "; path=" + options.path : "",
|
||||
options.domain ? "; domain=" + options.domain : "",
|
||||
options.secure ? "; secure" : "",
|
||||
";samesite=Lax",
|
||||
].join(""));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user