Skip to content

Commit 7f6669d

Browse files
committed
When removing cookies, ignore the domain-value
1 parent cdffd68 commit 7f6669d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

view/base/templates/script/cookies.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ $cookieConfig = $block->getCookieConfig();
5050
},
5151
remove(name) {
5252
let cookieParts = this.getCookieParts(name, 0);
53+
cookieParts = cookieParts.filter(cookiePart => !cookiePart.startsWith('domain='));
5354
cookieParts = cookieParts.filter(cookiePart => !cookiePart.startsWith('max-age='));
5455
cookieParts.push('max-age=-999999');
5556

0 commit comments

Comments
 (0)