We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f1e38f commit 5c44461Copy full SHA for 5c44461
1 file changed
ui/src/store/modules/user.js
@@ -496,9 +496,17 @@ const user = {
496
}).catch(() => {
497
resolve()
498
}).finally(() => {
499
+ const paths = ['/', '/client']
500
+ const hostname = window.location.hostname
501
+ const domains = [undefined, hostname, `.${hostname}`]
502
Object.keys(Cookies.get()).forEach(cookieName => {
- Cookies.remove(cookieName)
- Cookies.remove(cookieName, { path: '/client' })
503
+ paths.forEach(path => {
504
+ domains.forEach(domain => {
505
+ const options = { path }
506
+ if (domain) options.domain = domain
507
+ Cookies.remove(cookieName, options)
508
+ })
509
510
})
511
512
0 commit comments