title: Ionic 2 - Error : net::ERR_CONNECTION_TIMED_OUT when run on android device
body: <p>(Sorry for my bad English)</p>
  
  <p>I have built an application with Ionic 2 for Android. In this application I need to get information from an API and it's works perfectly when I run do it in the browser (ionic serve).</p>
  
  <p>The problem is when I run on my device (Android 6.0.1) I get this issue :</p>
  
  <blockquote>
    <p>net::ERR_CONNECTION_TIMED_OUT</p>
  </blockquote>
  
  <p>Then I searched how to resolve this and I tried many things.</p>
  
  <p>I have the cordova-plugin-whitelist and my config.xml looks like :</p>
  
  <pre><code>&lt;content src="index.html" /&gt;
  &lt;allow-navigation href="*" /&gt;
  &lt;allow-intent href="*" /&gt;
  &lt;access origin="*" subdomains="true" /&gt;
  </code></pre>
  
  <p>and I put this in my index.html :</p>
  
  <pre><code>&lt;meta http-equiv="Content-Security-Policy" content="default-src *; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; img-src * data: 'unsafe-inline'; connect-src * 'unsafe-inline'; frame-src *; media-src *;"&gt;
  </code></pre>
  
  <p>I have read many documentation concerning this issue but I didn't find anything really helpful.</p>
  
  <p>Can someone help me please ?</p>
  
  <p>Thanks</p>