Cordova Android Failed to load resource: net::ERR_NAME_NOT_RESOLVED
<p>I upgraded today to the newest Cordova - 5.4.1. App on iOS kept working just fine but not on Android. All requests were returning 404 error, so I dig into the topic and found out that I need "cordova-plugin-whitelist". I installed it and added
<code>
&lt;meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline' 'unsafe-eval'"&gt;
</code></p>

<p>to the header of index.html as well as <code>&lt;access origin="*" /&gt;&lt;allow-navigation href="*"/&gt;</code> to config.xml</p>

<p>and now every request to external world is returning "net::ERR_NAME_NOT_RESOLVED"</p>

<p>In AndroidManifest.xml I have those two lines so I guess it's not a problem with Internet access.
<code>
&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
&lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
</code></p>

<p>I went through many questions on SO related to cordova-plugin-whitelist but nothing seems to work</p>

<p>My config.xml
```</p>

<pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
&lt;widget id="app" version="1.1.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
    &lt;name&gt;app&lt;/name&gt;
    &lt;description&gt;
        A sample Apache Cordova application that responds to the deviceready event.
    &lt;/description&gt;
    &lt;author email="dev@cordova.apache.org" href="http://cordova.io"&gt;
        Apache Cordova Team
    &lt;/author&gt;
    &lt;content src="index.html" /&gt;
    &lt;allow-navigation href="*" /&gt;
    &lt;platform name="ios"&gt;...splash screens and icons&lt;/platform&gt;
    &lt;platform name="android"&gt;...splash screens and icons&lt;/platform&gt;
    &lt;icon src="resources/android/icon/drawable-xhdpi-icon.png" /&gt;
    &lt;preference name="SplashScreen" value="screen" /&gt;
    &lt;preference name="SplashScreenDelay" value="3000" /&gt;
    &lt;preference name="Orientation" value="default" /&gt;
    &lt;feature name="phonegap-parse-plugin"&gt;
        &lt;param name="id" value="org.apache.cordova.core.parseplugin" /&gt;
        &lt;param name="url" value="https://github.com/fastrde/phonegap-parse-plugin" /&gt;
    &lt;/feature&gt;
    &lt;feature name="Insomnia (prevent screen sleep)"&gt;
        &lt;param name="id" value="nl.x-services.plugins.insomnia" /&gt;
        &lt;param name="url" value="https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git" /&gt;
    &lt;/feature&gt;
    &lt;feature name="Toast"&gt;
        &lt;param name="id" value="cordova-plugin-x-toast" /&gt;
        &lt;param name="url" value="https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin.git" /&gt;
    &lt;/feature&gt;
    &lt;feature name="Cordova SMS Plugin"&gt;
        &lt;param name="id" value="com.cordova.plugins.sms" /&gt;
        &lt;param name="url" value="https://github.com/cordova-sms/cordova-sms-plugin.git" /&gt;
    &lt;/feature&gt;
    &lt;feature name="OpenTokCordovaPlugin"&gt;
        &lt;param name="id" value="com.tokbox.cordova.opentok" /&gt;
        &lt;param name="url" value="https://github.com/doxyme/cordova-plugin-opentok" /&gt;
    &lt;/feature&gt;
&lt;/widget&gt;
</code></pre>

<p>```</p>