# Https request not working when use Ionic View

**URL:** <https://forum.ionicframework.com/t/https-request-not-working-when-use-ionic-view/72016>\
**Category:** ionic-v1\
**Created:** [December 1, 2016, 10:34pm UTC](https://forum.ionicframework.com/t/https-request-not-working-when-use-ionic-view/72016 "2016-12-01T22:34:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![santamae](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@santamae](https://forum.ionicframework.com/u/santamae)\
**Post date:** [December 1, 2016, 10:34pm UTC](https://forum.ionicframework.com/t/https-request-not-working-when-use-ionic-view/72016/1 "2016-12-01T22:34:07Z")

</div>

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.

Thanks.

---

<div class="post-metadata">

**Author:** ![BaskaraSethupathi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/baskarasethupathi/32/102188_2.png) [@BaskaraSethupathi](https://forum.ionicframework.com/u/BaskaraSethupathi)\
**Post date:** [December 7, 2016, 9:24am UTC](https://forum.ionicframework.com/t/https-request-not-working-when-use-ionic-view/72016/2 "2016-12-07T09:24:01Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![anicacute09](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/anicacute09/32/113162_2.png) [@anicacute09](https://forum.ionicframework.com/u/anicacute09)\
**Post date:** [December 7, 2016, 9:25am UTC](https://forum.ionicframework.com/t/https-request-not-working-when-use-ionic-view/72016/3 "2016-12-07T09:25:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![santamae](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@santamae](https://forum.ionicframework.com/u/santamae)\
**Post date:** [December 7, 2016, 3:40pm UTC](https://forum.ionicframework.com/t/https-request-not-working-when-use-ionic-view/72016/4 "2016-12-07T15:40:04Z")

</div>

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.
