Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49355

Conditionally switch hostname when using `ionic serve` or `ionic cordova run android --livereload`

$
0
0

@Audrey84 wrote:

I have a Service that talks to a HTTP server. Because of CORS I use a CLI Service Proxy. Of course I then have to change the hostname the library is using from the external host to the proxy I defined.

Is there a way to automate this or choose the host conditionally so I don't accidentally deploy or build with the proxy host?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49355

Latest Images

Trending Articles



Latest Images

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