Introduction
CSRF protection stops bad websites from tricking you into doing things you don't want on other sites. It keeps your actions safe and private.
When you have forms that change data, like submitting a comment or updating a profile.
When your app accepts POST, PUT, PATCH, or DELETE requests from users.
When you want to make sure only your website can send important requests.
When you want to protect users from malicious attacks that use their login without permission.