Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
frankpf
· 7y ago · 0 comments
Using a cookie is not a benefit, it's a downside. You have to deal with CSRFs, which aren't possible with localStorage.
Comments
[–]
rdegges
7y ago
But then you open yourself up to XSS which is a lot harder to defend against.
[–]
frankpf
OP
7y ago
You don't open yourself up to XSS, see my comment above:
https://news.ycombinator.com/item?id=20773188