CSRF Protection in ASP.NET — a practical guide to CSRF ASP.NET with clear examples you can reuse in real projects.
ASP & ASP.NET Tutorial Series (232/247). Prefer one article? Read the complete ASP.NET tutorial.
Short description
APIs using bearer tokens typically aren�t CSRF-vulnerable the same way.
CSRF tip
<form method="post">
@Html.AntiForgeryToken()
</form>