title: whitelisting a domain in ionic app
body: <p>I am going through the ionic tutorial present in </p>
  
  <pre><code>http://ccoenraets.github.io/ionic-tutorial/build-ionic-project.html
  </code></pre>
  
  <p>and ran the app on browser</p>
  
  <pre><code>ionic serve
  </code></pre>
  
  <p>and in android using </p>
  
  <pre><code>ionic emulate android 
  </code></pre>
  
  <p>When I run the app as instructed in tutorial, it works well on my chrome browser but when I try to run on emulator, I dont see any data, its just empty screens with menus. I suspect its the problem with whilelist and added</p>
  
  <pre><code>  &lt;allow-navigation href="*" /&gt;
  </code></pre>
  
  <p>to my /config.xml file but it still doesn't work, My current config.xml file is</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;widget id="com.ionicframework.conference472350" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
    &lt;name&gt;conference&lt;/name&gt;
    &lt;description&gt;
          An Ionic Framework and Cordova project.
      &lt;/description&gt;
    &lt;author email="hi@ionicframework" href="http://ionicframework.com/"&gt;
        Ionic Framework Team
      &lt;/author&gt;
    &lt;content src="index.html"/&gt;
    &lt;access origin="*" /&gt;
    &lt;allow-intent href="*" /&gt;
    &lt;allow-navigation href="*" /&gt;
    &lt;preference name="webviewbounce" value="false"/&gt;
    &lt;preference name="UIWebViewBounce" value="false"/&gt;
    &lt;preference name="DisallowOverscroll" value="true"/&gt;
    &lt;preference name="android-minSdkVersion" value="16"/&gt;
    &lt;preference name="BackupWebStorage" value="none"/&gt;
    &lt;preference name="SplashScreen" value="screen"/&gt;
    &lt;preference name="SplashScreenDelay" value="3000"/&gt;
    &lt;feature name="StatusBar"&gt;
      &lt;param name="ios-package" value="CDVStatusBar" onload="true"/&gt;
    &lt;/feature&gt;
    &lt;platform name="android"&gt;
      &lt;icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/&gt;
      &lt;icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/&gt;
      &lt;icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/&gt;
      &lt;icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/&gt;
      &lt;icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/&gt;
      &lt;icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-land-ldpi-screen.png" density="land-ldpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-land-mdpi-screen.png" density="land-mdpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-land-hdpi-screen.png" density="land-hdpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-land-xhdpi-screen.png" density="land-xhdpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" density="land-xxhdpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/&gt;
      &lt;splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/&gt;
    &lt;/platform&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>I am debugging the app in chrome devtools and this is the error I get in console for the app</p>
  
  <pre><code>Failed to load resource: net::ERR_CONNECTION_REFUSED
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/pm9ap.png" alt="enter image description here"></p>