Can't get .net core MVC to redirect 401 to /Account/Login
问题 When I request a controller action that is [Authorize] decorated instead of being redirected to the login page I receive a 401 error. This is a .net core mvc app using the identity template running on IIS express. When i run the app from program.cs the redirect to login works fine. I've added explicit directions to for the cookie authentication to use the /Account/Login redirect both for configuration and services section, as well as configuring Identity to perform this redirect. I can't get