API Calls from Postman Work, But Not From the Browsers
Problem
I had just upgraded NuGet packages - a seemingly innocent thing to do.
Everything compiles fine and I tried to run my ASP.NET WebAPI service. Testing
in Postman works fine, but when I try to let the browser call an endpoint (any
endpoint), I get a mysterious 500 server error with a rather unhelpful payload
message of {"message":"An error has occurred."}. However, even with Chrome
accessing the service, a breakpoint in the endpoint showed me that the code was
executing fine. The problem is clearly occurring inside the ASP.NET engine when
trying to send the response back to the browser.


