Explain it in 60 seconds
Cross-site request forgery (CSRF)
Frontend Engineering · Frontend System Design · Beginner
What is CSRF, and how is it prevented?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Another site triggers authenticated request using user's cookies.
- SameSite cookies mitigate.
- CSRF tokens for state-changing requests.
- Check Origin header.
- Don't use GET for changes.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.