I have created simple API in MVC.
I want to call it from Ionic App. I wrote code in my WebApiConfig.cs
file to allow CORS. But when I try to call same from Ionic it throws an error:
Failed to load http://localhost:53377/api/member/2: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.
How can I resolve the issue?