Skip to content

Instantly share code, notes, and snippets.

@jonasdw
Created June 15, 2018 06:57
Show Gist options
  • Save jonasdw/9eeb1f967a0f7f8d7e73f891e53a4d97 to your computer and use it in GitHub Desktop.
Save jonasdw/9eeb1f967a0f7f8d7e73f891e53a4d97 to your computer and use it in GitHub Desktop.
.AddCookie(options =>
{
options.AccessDeniedPath = new PathString(System.Net.WebUtility.HtmlEncode("/Error/Error"));
options.ReturnUrlParameter = System.Net.WebUtility.HtmlEncode("statuscode=403");
})
// https://626ae64b.ngrok.io/Error/Error?statuscode%3D403=%2F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment