News for hackers. Stuff that matters.
Re:JSON Web Tokens should be avoided by joepie91_ on Tuesday March 14, 2017 @11:47AM (#13868475)
> I'm much more in the localStorage + Authorization header for this reason.

That's just exchanging one security issue for another. Now you have the ability for people to steal tokens after an XSS attack. And yes, that's significantly different from "can make requests on your behalf".

The correct solution is to solve the CSRF vulnerabilities by using CSRF tokens. Not to change your auth persistence mechanism.

There are no comments on this comment yet.