title: Angular project with ASP.NET Web API project in Visual Studio
body: <p>I have a solution with two projects in Visual Studio 2017.</p>
  
  <p>One contains all of my Angular files for client side SPA. While the other is a ASP.NET web api project that serves as an endpoint for http calls made by the Angular front end. </p>
  
  <p>I'm using Angular CLI and ng-serve to deploy my angular application to localhost:4200</p>
  
  <p>The web api is deployed to localhost:6463</p>
  
  <p>In a production environment, they would be under the same domain. However, in development they are not in the same domain as the port differs for localhost. Forcing me to implement CORS as the Angular app has to talk to the web api. </p>
  
  <p>To me, it seems less than ideal to implement CORS for the purposes of development only. </p>
  
  <p>Is there a better structure? Or is there anything that I am missing? </p>