News for hackers. Stuff that matters.
Re:CSRF, CORS, and HTTP Security Headers Demystified by shartte on Thursday April 29, 2021 @06:13PM (#26987484)
The sole reason really is that the contents of a HttpOnly cookie cannot be exfiltrated by an XSS-exploit, while a JWT stored in localStorage could be. This would probably only make a difference if the JWT either has a long lifetime, or is usable outside of the site's origin.

There are no comments on this comment yet.