Automatic CSRF protection based on Fetch Metadata headers: Exploring the .NET 11 preview - Part 6
ASP.NET Core in .NET 11 preview 6 adds Cross-Site Request Forgery protection based on Fetch Metadata HTTP headers instead of the traditional anti-CSRF tokens used in earlier .NET Core versions. The sixth part of a series on the .NET 11 preview explains CSRF attacks, the existing protections in ASP.NET Core and why the new approach is now possible. It then shows how the header-based protection works in practice.
AI-written summary, checked against the cited sources. How summaries work
