From 297329e0d62675aad2cf2d2aa69a62d3484b3bb8 Mon Sep 17 00:00:00 2001 From: Bartizan Date: Wed, 29 Jan 2025 12:28:48 +0200 Subject: [PATCH] Add minimal APIs section to contents of anti-request-forgery.md --- aspnetcore/security/anti-request-forgery.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/security/anti-request-forgery.md b/aspnetcore/security/anti-request-forgery.md index 1fdb30ce656e..d0dca4f415e8 100644 --- a/aspnetcore/security/anti-request-forgery.md +++ b/aspnetcore/security/anti-request-forgery.md @@ -268,7 +268,7 @@ The following example uses JavaScript to make an AJAX request to obtain the toke -### Antiforgery with Minimal APIs +## Antiforgery with Minimal APIs Call [AddAntiforgery](/dotnet/api/microsoft.extensions.dependencyinjection.antiforgeryservicecollectionextensions.addantiforgery) and to register antiforgery services in DI. Antiforgery tokens are used to mitigate [cross-site request forgery attacks](xref:security/anti-request-forgery).