Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
minhazm
· 5y ago · 0 comments
That also applies to cookies. Users can run any browser or script to access your site and do whatever they want with the cookies.
Comments
[–]
gigaftp
5y ago
In the context of a compliant web browser you can set a cookie as http only as to disallow access it via Js.
[–]
Jenk
5y ago
Not for http-only cookies it doesn't.
[–]
fractionalhare
5y ago
No they can’t, refer to the documentation on cookie flags and attributes like httpOnly:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies