News for hackers. Stuff that matters.
Re:Why do we have both CSRF protection and CORS? by preinheimer on Sunday March 02, 2025 @06:47PM (#43236580)
Traditionally csrf tokens had two parts: something in a cookie(/server side data store that used a cookie as the id), and something in a form element on the page.

So while an attacker could trick your browser to making a request to get the cookie, and trick your browser into submitting arbitrary form data, they couldn’t get the csrf tokens to match.

There are no comments on this comment yet.