I've enabled CORS for my web api project before deploying it to local IIS. However, when I try to call a controller method from Angular, I am getting the following error:
SEC7128: Multiple Access-Control-Allow-Origin headers are not allowed for CORS response.
To enable CORS on my web api, I've added this line of code to WebApi.config:
config.EnableCors();
I've also added this attribute to my controller class:
[EnableCors(origins: "http://localhost:53720", headers: "*", methods: "*")]