In case the AntiForgeryToken cannot be decrypted the antiforgery infrastructure throws an exception which is handled (in my ASP.NET Core pipeline) using app.UseExceptionHandler("/Error"). However, the Error page cannot be rendered as the antiforgery infrastructure again throws - although the request is no longer really a POST request now...is there a workaround?
In case the AntiForgeryToken cannot be decrypted the antiforgery infrastructure throws an exception which is handled (in my ASP.NET Core pipeline) using
app.UseExceptionHandler("/Error")
. However, the Error page cannot be rendered as the antiforgery infrastructure again throws - although the request is no longer really a POST request now...is there a workaround?