Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to remove cookie on https domain #27

Open
iNDicat0r opened this issue Oct 16, 2017 · 3 comments
Open

Unable to remove cookie on https domain #27

iNDicat0r opened this issue Oct 16, 2017 · 3 comments

Comments

@iNDicat0r
Copy link

when the cookie is set on the server side, it has httpOnly set to false, secure to false.
I can access the cookie in the SPA, but unable to delete it(set it to past).

@tvarwig
Copy link

tvarwig commented Oct 19, 2017

Having Same Issue

@iNDicat0r
Copy link
Author

What i do for now, is deleting it on the server side..

@makslevental
Copy link

doesn't work for me either. from SO

function clearCookie(name) {
  let domain = document.domain
  let path = '/'
  document.cookie = name + '=; expires=' + +(new Date()) + '; domain=' + domain + '; path=' + path
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants