Reputation: 4082
I installed a Angular 4 Application using the Angular CLI template for visual studio, in VS 2017.
That work OK, but use the IIS Express.
My goal is, that the Angular application get the information from a WEB.API installed in IIS.
I don't want to enable CORS or JSONP to access the information of the WEB API, because the end solution will be installed in the same IIS Server in the same domain.
Then, my question is:
How to modify the Angular Application to be installed in the IIS during the DEVELOPMENT phase?.
All the solutions that I found are related to deploy the Angular project to production. but I need in development. I was able to do that using the old quick-start of Angular 2 (now deprecated) Can someone help me please.
Upvotes: 1
Views: 758
Reputation: 880
If you do not want to deal with CORS then you will need to build a MVC Application. This means that you will only have one application/site in your IIS Server not two.
There is a well documented example from candorDeveloper that explains how he did it.
Hope that helps
Upvotes: 1