← Back to Security

CSRF

Securitysecurity

The Question

What is CSRF and how do you prevent it?

What a Strong Answer Covers

  • browser sends cookies automatically
  • "CSRF token
  • "SameSite cookie

Related Questions

  • Authentication vs Authorization
  • JWT — 3 Parts, Signing, Revocation
  • SQL Injection
  • XSS
  • OAuth 2.0 — Authorization Code Flow

Practice This Question

Get AI-graded feedback on your answer with follow-up probes on weak points.

Take the Free Assessment
GrindQuestionsAITechnical interview assessment
TermsPrivacyAbout