Tag: CORS
-
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…
-
Solved Access-Control-Allow-Origin Error in WCF REST Service
Recently I was working on a JSON based WCF REST Service. It was a simple service performing CRUD operation. When I tried to consume service from a web based client, got following errors in browser console. Error message was, No Access-Control-Allow-Origin header is present on the required resource. Since service was running on different…