# HTTPS status 0 in the release build

**URL:** <https://forum.ionicframework.com/t/https-status-0-in-the-release-build/44512>\
**Category:** ionic-v1\
**Created:** [February 23, 2016, 8:16am UTC](https://forum.ionicframework.com/t/https-status-0-in-the-release-build/44512 "2016-02-23T08:16:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danm1](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@danm1](https://forum.ionicframework.com/u/danm1)\
**Post date:** [February 23, 2016, 8:16am UTC](https://forum.ionicframework.com/t/https-status-0-in-the-release-build/44512/1 "2016-02-23T08:16:25Z")

</div>

We are working on a Ionic app that receive data from an API.  
Before, the API was on http:// address and everything was working fine.  
Then we have moved the API to https:// and it’s not working anymore.

We’ve added the whitelist plugin, added:

allow-navigation href="http://_.lexnavigator.net/_"  
access origin=“https://_.lexnavigator.net/_”

we don’t receive a 404 error any longer, but a 0 status.

The app with https is working well in the browser, the app package with https is working well with a debug build in the phone, but not with a RELEASE BUILD in the phone.

With http all works very well in a release build.

In the console log I see that the status of the request is 0. Can you help with this problem?

---

<div class="post-metadata">

**Author:** ![tomkuipers](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tomkuipers/32/12918_2.png) [@tomkuipers](https://forum.ionicframework.com/u/tomkuipers)\
**Post date:** [February 23, 2016, 4:32pm UTC](https://forum.ionicframework.com/t/https-status-0-in-the-release-build/44512/2 "2016-02-23T16:32:16Z")

</div>

I have encountered the same once. Are you running an Android app? See my comment here:

> [@From http to https -- preparing the app](https://forum.ionicframework.com/t/from-http-to-https-preparing-the-app/26926/5):
>
> Beware that on Android handling of ssl connections is different for debug and release versions of your apk. I learned this the hard way. Self-signed certificates work in debug mode but not in release mode. Test if your setup will work in release mode by setting ‘android:debuggable=“false”’ in your manifest file. Also run an ssl validation check such as [https://www.digicert.com/help/](https://www.digicert.com/help/) to check for certificate chain issues. These will also fail in release mode but work in debug mode. I used the d…

In short, android release builds are more strict regarding ssl issues compared to debug builds. Check your certificate.

---

<div class="post-metadata">

**Author:** ![danm1](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@danm1](https://forum.ionicframework.com/u/danm1)\
**Post date:** [February 23, 2016, 5:15pm UTC](https://forum.ionicframework.com/t/https-status-0-in-the-release-build/44512/3 "2016-02-23T17:15:59Z")

</div>

Thanks a lot! We have a lead now. The certificate is from GoDaddy and indeed [www.digicert.com](http://www.digicert.com) response :

SSL Certificate is not trusted. If you bought the certificate from a trusted authority, you probably just need to install one or more Intermediate certificates.

We are using nodejs for the server, and the browsers did not complain about the cert.

So we are digging the issue with the cert on node, thenak again!
