Proxies do not work while ionic serve on


I want to connect my app with some backend, which is on the server.
So I set my proxies to that server, so I can access it with ionic serve command.
I also getting a message from the ionic-client, that the proxies were added.

If I test everything in chrome I see in the request headers the http://localhost:8100/path url.
So ionic tries to request it self, though it has to request url.

If configure proxies to access my local node server, which is running on http://localhost:9080, everything works fine, so I think ionic can not handle cross origin requests, even through proxies.

How can I solve this problem?

I am running the following version of ionic:

“ionic-angular”: “2.0.0-rc.1”,
“ionic-native”: “2.2.3”,
"@ionic/app-scripts": “^1.1.4”,

That is how Service Proxies for Ionic CLI work. You request a local path that requests the remote URL in the background. This way for the app and browser it looks like a local requests with no CORS issues.

Are you getting any errors?

Please show us the proxy config that is not working and which URL you are requesting in the app.
Also post your ionic info output please.