Add IgnoreAntiforgeryToken to Error Page
Fixes https://github.com/dotnet/aspnetcore/issues/23759
This commit is contained in:
parent
6ec9940b16
commit
3cf8b5cf10
|
|
@ -10,6 +10,7 @@ using Microsoft.Extensions.Logging;
|
||||||
namespace ComponentsWebAssembly_CSharp.Server.Pages
|
namespace ComponentsWebAssembly_CSharp.Server.Pages
|
||||||
{
|
{
|
||||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||||
|
[IgnoreAntiforgeryToken]
|
||||||
public class ErrorModel : PageModel
|
public class ErrorModel : PageModel
|
||||||
{
|
{
|
||||||
public string RequestId { get; set; }
|
public string RequestId { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ using Microsoft.Extensions.Logging;
|
||||||
namespace Company.WebApplication1.Pages
|
namespace Company.WebApplication1.Pages
|
||||||
{
|
{
|
||||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||||
|
[IgnoreAntiforgeryToken]
|
||||||
public class ErrorModel : PageModel
|
public class ErrorModel : PageModel
|
||||||
{
|
{
|
||||||
public string RequestId { get; set; }
|
public string RequestId { get; set; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue