CORS headers missing when deployed on Azure Web App / Azure API
问题 I have created an OWIN hosted WebAPI 2 . There's also a web app ( AngularJS ) that's using the API and acting as a client. I've added the necessary code for the CORS to the Startup.cs , and hosted it in local IIS on a port different than the client and confirmed that it fixes the Cors issue. Then, I deployed both apps to Azure (I've put both on the Azure as Web App, and I also tried putting the OWIN to the Azure API that is currently in preview) but - the preflight request now fails (no