# \[SOLVED\] IonicView App - Http request to external API

**URL:** <https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696>\
**Category:** ionic-v1\
**Created:** [March 6, 2015, 6:48pm UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696 "2015-03-06T18:48:47Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![alacret](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/alacret/32/104058_2.png) [@alacret](https://forum.ionicframework.com/u/alacret)\
**Post date:** [July 8, 2016, 5:26am UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696/22 "2016-07-08T05:26:41Z")

</div>

Hi guys,

Same problem here. I’m trying to fetch the source of an external URL:

> **[El nuevo Iron Man de Marvel será una mujer negra](https://hipertextual.com/2016/07/iron-man-mujer)**
>
> De quince años, científica, mujer y negra. Así es el nuevo Iron Man.

I’m using $http.get(URL)

and the console with: ionic emulare ios -lc give me this:

0 372693 error “Cannot GET /hipertextual.com/2016/07/iron-man-mujer?paras=2\n”

in Android is working perfectly, this is my plugin list:

com.napolitano.cordova.plugin.intent 0.1.3 "IntentPlugin"  
com.oauthio.plugins.oauthio 0.2.4 "[OAuth.io](http://OAuth.io)"  
cordova-plugin-compat 1.0.0 "Compat"  
cordova-plugin-customurlscheme 4.2.0 "Custom URL scheme"  
cordova-plugin-file 4.2.0 "File"  
cordova-plugin-file-transfer 1.5.1 "File Transfer"  
cordova-plugin-http 1.1.0 "SSL Pinning"  
cordova-plugin-inappbrowser 1.4.0 "InAppBrowser"  
cordova-plugin-splashscreen 3.2.2 "Splashscreen"  
cordova-plugin-whitelist 1.2.2 "Whitelist"  
sk.kcorp.cordova.ios-security 0.3.0 “IOS Security”

---

<div class="post-metadata">

**Author:** ![cityzen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/cityzen/32/68388_2.png) [@cityzen](https://forum.ionicframework.com/u/cityzen)\
**Post date:** [July 9, 2016, 2:05pm UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696/23 "2016-07-09T14:05:07Z")

</div>

My issue ended up being that my SSL certificate on my API server was missing the intermediate certificate. Try using this: [SSL Checker](https://www.sslshopper.com/ssl-checker.html) Android seems to be much more strict in what it will accept from SSL configuration.

In my case I just need to add the intermediate certificate. I downloaded it from the provider, included it with the certificate keys and was good to go.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![alacret](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/alacret/32/104058_2.png) [@alacret](https://forum.ionicframework.com/u/alacret)\
**Post date:** [July 9, 2016, 3:09pm UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696/24 "2016-07-09T15:09:47Z")

</div>

I solved with a workaround

> [@\[SOLVED\] Ionic Angular HTTP get not working in IOS](https://forum.ionicframework.com/t/solved-ionic-angular-http-get-not-working-in-ios/56973):
>
> Hi guys, I’m trying to fetch the source of an external URL with Angular $http: This is an example: I’m using $http.get(URL) and the console with: ionic emulare ios -lc give me this: 0 372693 error “Cannot GET /hipertextual.com/2016/07/iron-man-mujer?paras=2\n” in Android is working perfectly, this is my plugin list: com.napolitano.cordova.plugin.intent 0.1.3 "IntentPlugin" com.oauthio.plugins.oauthio 0.2.4 "[OAuth.io](http://OAuth.io)" cordova-plugin-compat 1.0.0 "Compat" cordova-plugin-customurlsche…

---

<div class="post-metadata">

**Author:** ![kapposds](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/kapposds/32/105285_2.png) [@kapposds](https://forum.ionicframework.com/u/kapposds)\
**Post date:** [December 10, 2016, 12:38pm UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696/25 "2016-12-10T12:38:34Z")

</div>

Hello there, I happen to have the same probelm. When I am testing my app with ionic serve or http-server on a browser on my pc or on my android or ipad device the data from the external api im getting via http request are show. But when i use ionic run android to run the app on my device, the data from the http request are nowhere to be seen. I have checked many forums about this problem, i tried adding code lines to my manifest file, to my config file, to my index file, i also removed and readded cordova whitleistplugin as recommended on many forums. But the issue still occurs.  
Could you please help me solve this issue? I can clone my project, just tell me what to do in order to get help .

---

<div class="post-metadata">

**Author:** ![Gunbit](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gunbit/32/90511_2.png) [@Gunbit](https://forum.ionicframework.com/u/Gunbit)\
**Post date:** [January 14, 2017, 6:15pm UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696/26 "2017-01-14T18:15:55Z")

</div>

Hello alacret,  
what is your workaround?  
Thx for your help

---

<div class="post-metadata">

**Author:** ![Sqoh](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Sqoh](https://forum.ionicframework.com/u/Sqoh)\
**Post date:** [February 25, 2017, 10:58pm UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696/27 "2017-02-25T22:58:42Z")

</div>

Thank you, I have been trying to solve this issue for over an hour

---

<div class="post-metadata">

**Author:** ![vinodc](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/vinodc/32/107875_2.png) [@vinodc](https://forum.ionicframework.com/u/vinodc)\
**Post date:** [March 25, 2017, 3:10pm UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696/28 "2017-03-25T15:10:34Z")

</div>

Thanks cityzen! The SSL checker discovered the issue and adding the full chain was helpful. Adding in certs by Let’s Encrypt resolved the issue for me!

---

<div class="post-metadata">

**Author:** ![domainscope](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@domainscope](https://forum.ionicframework.com/u/domainscope)\
**Post date:** [August 5, 2017, 1:37am UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696/29 "2017-08-05T01:37:01Z")

</div>

Thanks a lot Tim! You saved my day.

---

<div class="post-metadata">

**Author:** ![domainscope](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@domainscope](https://forum.ionicframework.com/u/domainscope)\
**Post date:** [August 5, 2017, 3:08am UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696/30 "2017-08-05T03:08:02Z")

</div>

Thanks Tim! The following instruction were very helpful to make Http request work with external API:

1. Upload the application with the URL of the server again to IonicView App (Just in case);
2. Open the IonicView App and clean the app data;
3. Restart IonicView app (double tap on home button and closing process).

---

<div class="post-metadata">

**Author:** ![ashokraj1994](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@ashokraj1994](https://forum.ionicframework.com/u/ashokraj1994)\
**Post date:** [September 12, 2017, 4:44am UTC](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696/31 "2017-09-12T04:44:54Z")

</div>

In my project im uploading image with contents of iFrame. Image is successfully uploading in some devices.(Moto e, samsung J5). But while testing in a REDMI phone, it gives the error “Failed to load resource: net::ERR\_ACCESS\_DENIED”. Image upload is failing. This looks very confusing. Also receiving this error in some other devices

[Previous page](https://forum.ionicframework.com/t/solved-ionicview-app-http-request-to-external-api/18696.md?page=1)
