Ionic 3 Proxy not working when deployed on Server


#1

Hi,
I am new to ionic and right now using ionic 3. I am trying to use ionic proxy in order to solve CORS issue and its working fine on my local environment but when I build my app using ionic build and deployed on server my proxy doesn’t work.
Can somebody please help me out. Many many thanks in advance.


#2

The https://ionicframework.com/docs/cli/configuring.html#service-proxies are a feature of the Ionic CLI and only work when running your app via ionic serve of the CLI. You will have to find another solution for your problem for actual deployment of your app.


#3

so you mean to say that ionic proxies are not added in build files ?


#4

Yes, the service proxy is offered by the Ionic CLI when running ionic serve.