While debugging a .NET MVC WebAPI project, I was getting the error, related to cross origin resource sharing: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:XXXXX’ is therefore not allowed access. Once I added the following custom header to the IIS Express application host configuration, the errors disappeared. <add name=”Access-Control-Allow-Origin” value=”*” /> […]
Categories