Tag: antiforgery
All the articles with the tag "antiforgery".
POST in, DELETE out: antiforgery and HttpMethodOverride in ASP.NET Core
UseAntiforgery() validates tokens only for POST, PUT and PATCH. Put form-field HttpMethodOverride in front of it and a cross-site POST becomes a DELETE that is never checked. Notes on PR #66772 and docs PR #37224: why the method list is what it is, a working repro on .NET 10, and what we documented.