I have the same problem as this post where I have installed the nuget package for cors and set
config.EnableCors(new EnableCorsAttribute("*", "*", "*"));
in my api config but it is still blocking access from my dev server (where I am calling the api) to my test server (where the api is deployed)
I have updated the nuget package for the web api 2 to the latest version of 2.2 but this hasn't resolved the problem either.
The error I get is:
XMLHttpRequest cannot load http://www.example.com/api. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://test.local' is therefore not allowed access.
Is there something I am missing here?