How to solve CORS issue in Ionic 2 project

How to fix CORS issue during development form localhost, trying to access REST API from some other domain (https://testdomain.com/User) in Ionic 2 project?

I am using Visual Studio 2015 for debugging Ionic 2 Project. It uses Ripple emulator.

please config your server API …
for example ASP.Net, PHP