Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Proxies do not work while ionic serve on

$
0
0

@Toplap wrote:

Hello,

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 http://myserver.com/path 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",

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>