I\'m using an angular2 front end and WebApi backend. The webapi is CORS enabled
var cors = new EnableCorsAttribute(\"*\", \"*\", \"*\");
GlobalConfiguration.
Please follow the step for CROS ISSUE fixes in WEB API:
Enabling CORS required Headers in the Application. i.e. in “Application_BeginRequest” Method in “Global.asax” file for simple requests.
Placing the below code in “web.config” file helped in CORS issue for preflight requests
Reference: https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/enabling-cross-origin-requests-in-web-api#enable-cors