Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: