I tried to follow the steps at http://enable-cors.org/server_aspnet.html to have my RESTful API (implemented with ASP.NET WebAPI2) work with cross origin requests (CORS Enab
WEBAPI2:SOLUTION. global.asax.cs:
var cors = new EnableCorsAttribute("*", "*", "*"); config.EnableCors(cors);
IN solution explorer, right-click api-project. In properties window set 'Anonymous Authentication' to Enabled !!!
Hope this helps someone in the future.