Comment

Comment by staticassertion

Can someone explain the Cookie vs LocalStorage thing? You can access cookies from Javascript, so how is localstorage worse? Assuming an attacker can execute arbitrary js in the browser (the model provided by the article).

edit: Thanks for the answers - httponly, makes sense.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton