12 instantiations of RequireAntiforgeryTokenAttribute
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentEndpointFactory.cs (1)
39builder.Metadata.Add(new RequireAntiforgeryTokenAttribute());
Microsoft.AspNetCore.Mvc.FunctionalTests (5)
AntiforgeryMiddlewareTest.cs (5)
207[RequireAntiforgeryToken] 212[RequireAntiforgeryToken] 218[RequireAntiforgeryToken] 229[RequireAntiforgeryToken] 241[RequireAntiforgeryToken]
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
Filters\AntiforgeryApplicationModelProviderTest.cs (5)
178[RequireAntiforgeryToken] 189[RequireAntiforgeryToken] 212[RequireAntiforgeryToken] 231[RequireAntiforgeryToken] 238[RequireAntiforgeryToken(false)]
MvcFormSample (1)
Controllers\HomeController.cs (1)
39[RequireAntiforgeryToken]
2 references to RequireAntiforgeryTokenAttribute
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\AntiforgeryApplicationModelProvider.cs (1)
58throw new InvalidOperationException($"Cannot apply [{nameof(ValidateAntiForgeryTokenAttribute)}] and [{nameof(RequireAntiforgeryTokenAttribute)}] at the same time.");
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Filters\AntiforgeryApplicationModelProviderTest.cs (1)
138$"Cannot apply [{nameof(ValidateAntiForgeryTokenAttribute)}] and [{nameof(RequireAntiforgeryTokenAttribute)}] at the same time.",