-
Security
Add CSRF protection to my forms and mutations
Adds anti-CSRF tokens or SameSite defenses to every state-changing form and endpoint.
Free Prompt
What This Does / How This Helps
Adds CSRF defenses to every form and state-changing endpoint, so a malicious site can't trick a logged-in user's browser into submitting requests on their behalf. CSRF is the attack where a victim visits an innocent-looking page that silently submits a form to your app using their active session: change email, transfer funds, delete account. Apps built quickly almost never include token validation, and browsers won't save you on their own in every case. The prompt picks the approach that fits your stack, keeps read endpoints untouched, and leaves you with a forge-and-fail test to prove it works.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).