Bug 26019: (follow-up) Set SameSite attribute on Cart cookies

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Owen Leonard 2022-04-12 11:36:46 +00:00 committed by Fridolin Somers
parent cc5333cb95
commit 3738ee04bf
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@ if(valCookie){
function writeCookie(name, val, wd) {
if (wd) {
parent.opener.document.cookie = name + "=" + val + "; path=/";
parent.opener.document.cookie = name + "=" + val + "; SameSite=Lax; path=/";
}
else {
parent.document.cookie = name + "=" + val + "; path=/";
parent.document.cookie = name + "=" + val + "; SameSite=Lax; path=/";
}
}