27 references to UseAntiforgery
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
406_app.UseAntiforgery();
BlazorUnitedApp (1)
Program.cs (1)
29app.UseAntiforgery();
Keycloak.Web (1)
Program.cs (1)
59app.UseAntiforgery();
Microsoft.AspNetCore.Antiforgery.Test (2)
AntiforgeryApplicationBuilderExtensionsTest.cs (2)
23builder.UseAntiforgery(); 41var exception = Assert.Throws<InvalidOperationException>(() => builder.UseAntiforgery());
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
AntiforgeryMiddlewareTest.cs (6)
30app.UseAntiforgery(); 62app.UseAntiforgery(); 76app.UseAntiforgery(); 114app.UseAntiforgery(); 146app.UseAntiforgery(); 178app.UseAntiforgery();
Microsoft.AspNetCore.Routing.FunctionalTests (10)
MinimalFormTests.cs (10)
33app.UseAntiforgery(); 83app.UseAntiforgery(); 143app.UseAntiforgery(); 228exception = Assert.Throws<InvalidOperationException>(() => app.UseAntiforgery()); 401app.UseAntiforgery(); 454app.UseAntiforgery(); 512app.UseAntiforgery(); 561app.UseAntiforgery(); 613app.UseAntiforgery(); 665app.UseAntiforgery();
MinimalFormSample (1)
Program.cs (1)
14app.UseAntiforgery();
MvcFormSample (1)
Program.cs (1)
19app.UseAntiforgery();
MyFrontend (1)
Program.cs (1)
31app.UseAntiforgery();
OpenAIEndToEnd.WebStory (1)
Program.cs (1)
29app.UseAntiforgery();
SimpleWebSiteWithWebApplicationBuilder (1)
Program.cs (1)
18app.UseAntiforgery();
WaitFor.Frontend (1)
Program.cs (1)
28app.UseAntiforgery();