Skip to content

Commit 101e87f

Browse files
Merge pull request #34589 from Bartizan/add-minimal-api-to-contents
Add minimal APIs section to contents of anti-request-forgery.md
2 parents da35f22 + 297329e commit 101e87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/security/anti-request-forgery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ The following example uses JavaScript to make an AJAX request to obtain the toke
268268
269269
<a name="afwma"></a>
270270

271-
### Antiforgery with Minimal APIs
271+
## Antiforgery with Minimal APIs
272272

273273
Call [AddAntiforgery](/dotnet/api/microsoft.extensions.dependencyinjection.antiforgeryservicecollectionextensions.addantiforgery) and <xref:Microsoft.AspNetCore.Builder.AntiforgeryApplicationBuilderExtensions.UseAntiforgery(Microsoft.AspNetCore.Builder.IApplicationBuilder)> to register antiforgery services in DI. Antiforgery tokens are used to mitigate [cross-site request forgery attacks](xref:security/anti-request-forgery).
274274

0 commit comments

Comments
 (0)