clearAllCookies doesn't seem to work in headless Chrome 68
zeppelin opened this issue · 5 comments
zeppelin commented
Adding path=/
seems to fix the issue:
- document.cookie = `${cookieName}=; expires=${new Date(0).toUTCString()}`;
+ document.cookie = `${cookieName}=; expires=${new Date(0).toUTCString()};path=/`;
marcoow commented
Hm, when you're not writing the cookie for a specific path it should actually also not be necessary to include the path when clearing. However, I think we should support some of the arguments we support for regular writing for clearing as well - specifically path
, domain
and secure
.
Would you submit a PR adding support for those?
zeppelin commented
Happy to do that! I'm just not an expert in cookies, that's why I only reported the issue and not submitted the PR already :)
marcoow commented
Awesome! Let me know if you need help.