Re:Why do we have both CSRF protection and CORS?
by Macha on Monday March 03, 2025 @09:59AM
(#43242345)
Right, but if you're doing a SPA, your SPA makes the login call and stores a copy of the session token in local storage, which unlike a cookie isn't automatically sent on any request, never mind cross-origin ones. Doesn't prevent against XSS of course, but then that's what CSP is for.
[ Parent
| on HN ]
There are no comments on this comment yet.