32 references to AddAntiforgery
Microsoft.AspNetCore.Antiforgery (1)
AntiforgeryServiceCollectionExtensions.cs (1)
60services.AddAntiforgery();
Microsoft.AspNetCore.Antiforgery.Test (2)
AntiforgeryOptionsSetupTest.cs (2)
22serviceCollection.AddAntiforgery(); 47serviceCollection.AddAntiforgery();
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
42services.AddAntiforgery();
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
EndpointHtmlRendererTest.cs (1)
1678services.AddAntiforgery();
RazorComponentEndpointInvokerTest.cs (1)
22.Services.AddAntiforgery()
RazorComponentResultTest.cs (1)
456.AddAntiforgery()
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\EditFormTest.cs (1)
21services.AddAntiforgery();
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
AntiforgeryMiddlewareTest.cs (6)
27builder.Services.AddAntiforgery(); 59builder.Services.AddAntiforgery(); 73builder.Services.AddAntiforgery(); 100builder.Services.AddAntiforgery(); 143builder.Services.AddAntiforgery(); 175builder.Services.AddAntiforgery();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
133services.AddAntiforgery();
Microsoft.AspNetCore.Routing.FunctionalTests (12)
MinimalFormTests.cs (12)
42services.AddAntiforgery(); 102services.AddAntiforgery(); 152services.AddAntiforgery(); 191services.AddAntiforgery(); 268services.AddAntiforgery(); 315services.AddAntiforgery(); 411services.AddAntiforgery(); 463services.AddAntiforgery(); 522services.AddAntiforgery(); 574services.AddAntiforgery(); 626services.AddAntiforgery(); 675services.AddAntiforgery();
MinimalFormSample (1)
Program.cs (1)
10builder.Services.AddAntiforgery();
SecurityWebSite (3)
Startup.cs (1)
16services.AddAntiforgery();
StartupWithRequireAuth.cs (1)
16services.AddAntiforgery();
StartupWithUseMvc.cs (1)
16services.AddAntiforgery();
SimpleWebSiteWithWebApplicationBuilder (1)
Program.cs (1)
11builder.Services.AddAntiforgery();