@bdspen wrote:
Hello, I’m having an issue getting a proxy in the
ionic.config.json
file to work correctly. Myionic.config.json
looks like this:
{ "name": "myApp", "app_id": "512887ea", "type": "ionic-angular", "proxies": [ { "path": "/api/", "proxyUrl": "https://api.coinmarketcap.com/v1" } ], "integrations": { "cordova": {} } }
The proxy seems to be working properly when I make a http request to
/api
, but if I make a request to/api/ticker
then the browser will just requesthttp://ticker
. @hich is where I get thenet::ERR_NAME_NOT_RESOLVED
error in the console.So my question is, when requesting
/api/ticker
Shouldn’t the proxy be switching the url tohttps://api.coinmarketcap.com/v1/ticker
?
Posts: 1
Participants: 1