Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​AspNetCore.​Http.​Metadata.​IDisableCookieRedirectMetadata
Assembly: Microsoft.AspNetCore.Http.Abstractions
Metadata that indicates the endpoint should disable cookie-based authentication redirects typically because it is intended for API clients rather than direct browser navigation. <see cref="T:Microsoft.AspNetCore.Http.Metadata.IAllowCookieRedirectMetadata" /> overrides this no matter the order. When present and not overridden, the cookie authentication handler will prefer using 401 and 403 status codes over redirecting to the login or access denied paths.