We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b958f66 commit 542fa06Copy full SHA for 542fa06
1 file changed
view/base/templates/script/cookies.phtml
@@ -50,8 +50,10 @@ $cookieConfig = $block->getCookieConfig();
50
},
51
remove(name) {
52
let cookieParts = this.getCookieParts(name, 0);
53
+ cookieParts = cookieParts.filter(cookiePart => !cookiePart.startsWith('SameSite='));
54
cookieParts = cookieParts.filter(cookiePart => !cookiePart.startsWith('domain='));
55
cookieParts = cookieParts.filter(cookiePart => !cookiePart.startsWith('max-age='));
56
+ cookieParts = cookieParts.filter(cookiePart => !cookiePart.startsWith('secure'));
57
cookieParts.push('max-age=-999999');
58
59
document.cookie = cookieParts.join('; ');
0 commit comments