Hi
On click of browser back button i am getting an error:-
{"IDX10311: RequireNonce is 'true' (default) but validationContext.Nonce is null. A nonce cannot be validated. If you don't need to check the nonce, set OpenIdConnectProtocolValidator.RequireNonce to 'false'."} System.Exception {Microsoft.IdentityModel.Protocols.OpenIdConnectProtocolInvalidNonceException}
I have handeled this error type on gloabl.asax.cs file in Application_Error
by checking the error type.
(lastError.GetType() == typeof(OpenIdConnectProtocolInvalidNonceException))
in that im trying to redirect to home index view
My code:-
if (lastError.GetType() == typeof(OpenIdConnectProtocolInvalidNonceException))
{
HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));
HttpContext.Current.Response.Cache.SetValidUntilExpires(false);
HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
HttpContext.Current.Response.Cache.SetNoStore();
Response.Clear();
Server.ClearError();
Response.Redirect("~/Home/Index");
}
but still on click of browswer back button im getting error as :-
1. Confirm Form Resubmission on Crome browser
2. Webpage has expired on IE11 browser
please help
please help