How to Enable CORS in the ASP.NET Web API

Have you ever come across the following error: “Cross-origin Request Blocked. The same origin policy disallows reading the resource”. Us to! It turns out, we get this error due to lack of CORS support while sharing resources. When we try to consume the Web API from origin A in a web application residing in origin … Continue reading How to Enable CORS in the ASP.NET Web API