I'm trying to setup my local development environment for an angular application. I have the following projects:
.NET Web API project that is hosted on a separate website (let's say localhost:81)
MVC project with angular components hosted on default web site (localhost)
I want to use API from my angular app, however right now I need to deal with CORS requests as API is hosted on different web site. I want to avoid it.
I want to setup and endpoint for my MVC site (localhost/api) that is the proxy to API web site.
How can I do this using IIS?
URL rewrite module is not suited for such scenarios.