You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
On top of them, which redirects to /Login when user is not authenticated.
This behaviour is fine for my regular mvc controllers.
The problem is for my rest-like endpoints (their responses should be json-only). When user is not logged in it automatically sends the raw html of the login page but the client is expecting a json.
(yes, the same application has both kinds of controllers)
How can I configure my application such that some controllers respond with 401 instead of redirecting to /Login?