Skip to content

How to set HttpOnly? #344

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

Closed
hackuun opened this issue Aug 1, 2017 · 2 comments
Closed

How to set HttpOnly? #344

hackuun opened this issue Aug 1, 2017 · 2 comments

Comments

@hackuun
Copy link

hackuun commented Aug 1, 2017

Hi. Is it possible to set HttpOnly cookie? If I set it just by adding like this, it doesn't work:

        Cookies.set('refresh_token', response.data.refresh_token, HttpOnly)
@xsymphony
Copy link

HttpOnly means that JS can not operate the cookies...

@FagnerMartinsBrack
Copy link
Member

FagnerMartinsBrack commented Aug 3, 2017

As per @xiongsyao comment, see carhartl/jquery-cookie#122 (comment) and #84

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

No branches or pull requests

3 participants