Fix: ASP.NET Core API endpoints return 401 instead of redirecting to the login page after upgrading to .NET 10
In .NET 10 cookie auth answers API-style endpoints with 401/403 instead of a login redirect. Restore it per endpoint, globally, or with an AppContext switch.