Https request not working when use Ionic View


Hi there,

I’ve been working for weeks on an app for Android/iOS however, I’ve been facing an issue when I do https request to a server with a self signed certificate.

the weird thing is that if I use the Ionic view app to run the app in my smartphone (using ionic upload) the request it’s not working (Android/iOS) however, if I generate the apk and do an installation in my smartphone it is working.

I am not to expert in Ionic but what I have seen is that when I do “Ionic Serve” the issue is related to: ERR_INSECURE_RESPONSE but only on “serve” mode. If I do the installation of the app or “ionic run” it’s working.

Do you know what could be the issue? I need to test this app on iOS but I’m using a Debian machine, so, I’m not able to generate an installer for iOS.

Any help will be appreciated.



Hi @santamae use proxy in ionic.config.json file. it will work. bcoz its works for me…
“proxies”: [
“path”: “/api”,
“proxyUrl”: “”,
“rejectUnauthorized”: false

try this one… but it will not work in ionicviewapp… but it works in android real device , android chrome and web…


It’s better to test it to device really… there are lots of bugs in IonicView imho…


Hi guys,

I just did a test with a URL with a real certificate and it works, it seems that the issues is related with the Self-signed certificate.

Thanks anyway.