← Back to context

Comment by croemer

3 months ago

HTTP/1.1 spec, section 9.1.1 Safe Methods:

> Implementors should be aware that the software represents the user in their interactions over the Internet, and should be careful to allow the user to be aware of any actions they might take which may have an unexpected significance to themselves or others.

> In particular, the convention has been established that the GET and HEAD methods SHOULD NOT have the significance of taking an action other than retrieval.

See the "GET scenario" section of https://owasp.org/www-community/attacks/csrf to learn why ignoring the HTTP spec can be dangerous.

Or this blog post: https://knasmueller.net/why-using-http-get-for-delete-action...