I have used CORS in my application. In code I mentioned that particular URL(Domain) only need to access my API. Below is the code,
public static void Register(HttpConfiguration config)
{
var cors = new EnableCorsAttribute("www.Test.com", "*", "*");
config.EnableCors(cors);
}
As per CORS policy, if I call the above API using the domain www.Test.com, then the API response will be shown in my browser(JavaScript client), whereas if I call from another domain(let say www.sample.com) response will not be shown in browser(JavaScript client). This is working fine in the browsers Chrome and Microsoft Edge.
Whereas when I run it from IE browser, this is not working, Even though I call the API from different domain(let say www.sample.com) still the browser render the response. Is there any issue with IE.