Skip to content

Commit

Permalink
Use same domain as set-cookie method
Browse files Browse the repository at this point in the history
  • Loading branch information
talepre committed Dec 30, 2024
1 parent 944bfca commit f7531c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/client/src/views/chatbot/chatbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ class Chatbot extends HTMLElement {
});

private removeCookie = () =>
Cookies.remove(this.cookieName, { path: "/", domain: ".nav.no" });
Cookies.remove(this.cookieName, {
domain: location.hostname.includes("nav.no")
? ".nav.no"
: undefined,
});
}

const buildBoostConfig = ({
Expand Down

0 comments on commit f7531c0

Please sign in to comment.