Add IgnoreAntiforgeryToken to Error Page

Fixes https://github.com/dotnet/aspnetcore/issues/23759
This commit is contained in:
Kahbazi 2020-07-22 06:54:00 +04:30 committed by GitHub
parent 6ec9940b16
commit 3cf8b5cf10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ using Microsoft.Extensions.Logging;
namespace ComponentsWebAssembly_CSharp.Server.Pages
{
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
[IgnoreAntiforgeryToken]
public class ErrorModel : PageModel
{
public string RequestId { get; set; }

View File

@ -10,6 +10,7 @@ using Microsoft.Extensions.Logging;
namespace Company.WebApplication1.Pages
{
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
[IgnoreAntiforgeryToken]
public class ErrorModel : PageModel
{
public string RequestId { get; set; }