3 references to ValidateAntiForgeryTokenAttribute
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Filters\AntiforgeryApplicationModelProvider.cs (3)
55
var
antiforgeryAttribute = filters.OfType<
ValidateAntiForgeryTokenAttribute
>().FirstOrDefault();
58
throw new InvalidOperationException($"Cannot apply [{nameof(
ValidateAntiForgeryTokenAttribute
)}] and [{nameof(RequireAntiforgeryTokenAttribute)}] at the same time.");