Ionic 3 Proxy not working when deployed on Server

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.

1 Like

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.

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

1 Like

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

Yes, I’m wondering the same.

I’ve in my ionic-config.json this proxies.

"proxies": [{
            "path": "/auth-proxy",
            "proxyUrl": "http://galaxia123.com:1080/api/auth-server/auth-server/oauth"
        },
        {
            "path": "/byte-proxy",
            "proxyUrl": "http://galaxia123.com:1080/api/time-control/v1"
        }
    ],

but, when I do the “build” and host in another server doesn’t work’s!

Someone can help me?