# Update to cordova 5.0.0 make $http call error

**URL:** <https://forum.ionicframework.com/t/update-to-cordova-5-0-0-make-http-call-error/22703>\
**Category:** cordova\
**Created:** [May 11, 2015, 5:15am UTC](https://forum.ionicframework.com/t/update-to-cordova-5-0-0-make-http-call-error/22703 "2015-05-11T05:15:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![piavgh](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@piavgh](https://forum.ionicframework.com/u/piavgh)\
**Post date:** [May 11, 2015, 5:15am UTC](https://forum.ionicframework.com/t/update-to-cordova-5-0-0-make-http-call-error/22703/1 "2015-05-11T05:15:59Z")

</div>

Hi everyone,

Recently I need to use the repo "Geolocation Background"  
And according to this issue [https://github.com/christocracy/cordova-plugin-background-geolocation/issues/175](https://github.com/christocracy/cordova-plugin-background-geolocation/issues/175), I need to update cordova to v5.0.0

But after I updated it, the $http call to web service is broken. Every request jump to the .error part of $http.

After a couple of hours of scratching my head, I tried to rebuild my code with cordova 4.3.0 and everything is fine. So I think the problem is because of version 5.0.0 of cordova. But if I use 4.3.0 it means that I can’t use the repo “Geolocation Background”

Is there anyway to fix that. I mean no matter it’s 4.3.0 or 5.0.0, how can I use both “Geolocation Background” and $http without error?

Thank you very much

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [May 11, 2015, 5:42am UTC](https://forum.ionicframework.com/t/update-to-cordova-5-0-0-make-http-call-error/22703/2 "2015-05-11T05:42:57Z")

</div>

with cordova 5.0.0 they reintroduced the whitelist plugin…  
You need to add this plugin and allow your backend-urls.

> **[apache/cordova-plugin-whitelist](https://github.com/apache/cordova-plugin-whitelist)**
>
> cordova-plugin-whitelist - Mirror of Apache Cordova plugin whitelist

---

<div class="post-metadata">

**Author:** ![piavgh](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@piavgh](https://forum.ionicframework.com/u/piavgh)\
**Post date:** [May 11, 2015, 6:30am UTC](https://forum.ionicframework.com/t/update-to-cordova-5-0-0-make-http-call-error/22703/3 "2015-05-11T06:30:10Z")

</div>

thank you very much, @bengtler
