I have a web application which provides an API in addition to the actual website. I have forms authentication enabled in my application...
Now my problem is in my API endpoints returning a HttpUnauthorizedResult
redirects me to the login page....
How can I prevent the redirection from happening and just have a 401 status returned?
This is fixed (as of March 30th):
https://aspnetwebstack.codeplex.com/workitem/15
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With