We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6589235 commit 6460a2eCopy full SHA for 6460a2e
1 file changed
ui/src/store/modules/user.js
@@ -472,9 +472,17 @@ const user = {
472
}).catch(() => {
473
resolve()
474
}).finally(() => {
475
+ const paths = ['/', '/client']
476
+ const hostname = window.location.hostname
477
+ const domains = [undefined, hostname, `.${hostname}`]
478
Object.keys(Cookies.get()).forEach(cookieName => {
- Cookies.remove(cookieName)
- Cookies.remove(cookieName, { path: '/client' })
479
+ paths.forEach(path => {
480
+ domains.forEach(domain => {
481
+ const options = { path }
482
+ if (domain) options.domain = domain
483
+ Cookies.remove(cookieName, options)
484
+ })
485
486
})
487
488
0 commit comments