Trying to access a local API made in web API 2.0 (asp.net) from an angular project.
The request results in
Access to XMLHttpRequest at 'http://localhost:50581/MD/GetUserMD' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
But I don't understand as I added EnableCors to the webAPIConfig
and specified these in all the controllers.
Is there something I could try to resolve this issue? Thank you in advance.