state-changing request
A request that changes something on the server, such as a purchase, a password change or a deletion, as opposed to only reading data.
In more detail
Reading data should be safe to repeat and should not need these protections. These are the requests CSRF targets, so they must never use GET and should be protected by SameSite cookies and tokens.
Related terms
- cross-site request forgery — An attack where another website makes the victim's browser send a request to your site, and the browser's cookie makes it look genuine.
- HTTP method — The verb at the start of a web request that says what the client wants, such as GET to read or POST to create.
Taught in
- CSRF Mitigations, SameSite Cookies And Subresource Integrity — Frontend Architecture & Web Platform