I need to enable CORS for my Web API and I can\'t upgrade to Framework 4.5. I\'ve tried to add the following to my Web.config to see if it worked, but it didn\'t:
Web API 1.0, you need to enable CORS support using the following statements in the Application_BeginRequest event handler of the Global.asax.cs file.
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", allowedOrigin);
Support for CORS can be enabled at three levels. These include the following:
Action level Controller level Global level
refer link