# Ionic app on device “Failed to load resource” after Cordova whitelist plugin is added

**URL:** <https://forum.ionicframework.com/t/ionic-app-on-device-failed-to-load-resource-after-cordova-whitelist-plugin-is-added/35487>\
**Category:** ionic-v1\
**Created:** [October 24, 2015, 8:43pm UTC](https://forum.ionicframework.com/t/ionic-app-on-device-failed-to-load-resource-after-cordova-whitelist-plugin-is-added/35487 "2015-10-24T20:43:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chipatama](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@Chipatama](https://forum.ionicframework.com/u/Chipatama)\
**Post date:** [October 24, 2015, 8:43pm UTC](https://forum.ionicframework.com/t/ionic-app-on-device-failed-to-load-resource-after-cordova-whitelist-plugin-is-added/35487/1 "2015-10-24T20:43:02Z")

</div>

I was playing with some small app in Ionic, and I could not manage to get it to work on my android device, first I was getting an error : "Failed to load resource " with 404 response, Then I installed Cordova whitelist plugin, added

```
<access origin="*"/>
<allow-navigation href="*"/>
<allow-intent href="*"/>

```

inside my config.xml file and I added meta tag inside my html

```
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">

```

with this meta tag I was getting an error that Im breaking the policy of “script-src ‘self’”

so I changed it to :

```
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'">

```

Now I don’t get policy error but I’m just getting "Failed to load resource " without 404 response error,

Anyone has an idea what I’m I doing wrong since it’s really frustrating ☹

App works normally in browser, and the API is working you can test it here: `http://sremskevesti.rs/wp-json/posts`

---

<div class="post-metadata">

**Author:** ![Darksideous](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@Darksideous](https://forum.ionicframework.com/u/Darksideous)\
**Post date:** [May 20, 2017, 2:42pm UTC](https://forum.ionicframework.com/t/ionic-app-on-device-failed-to-load-resource-after-cordova-whitelist-plugin-is-added/35487/2 "2017-05-20T14:42:04Z")

</div>

> [@Chipatama](#):
>
> ’ ‘unsafe-inline’; script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’"\>

no response?? Ughhh this might no longer be relevant
