title: Cordova Http request Issue in Android Device
body: <p>I have Cordova &gt; 4.0.0, so it has CSP and Whitelist security measures.</p>
  <p>In the browser I can make the request to the API, but in an Android device it gives me this error:</p>
  <blockquote>
  <p>file:///http:/xxx.xxx.xxx/api/Login/DoLogin</p>
  <p>Failed to load resource: net::ERR_FILE_NOT_FOUND</p>
  </blockquote>
  <p>I searched for a solution, but nothing worked.</p>
  <p>My config.xml has this fields (according to <a href="https://github.com/apache/cordova-plugin-whitelist" rel="nofollow noreferrer">Cordova Whitelist Plugin</a> documentation):</p>
  <pre><code> &lt;allow-navigation href=&quot;*&quot; /&gt;
   &lt;allow-intent href=&quot;*&quot; /&gt;
   &lt;access origin=&quot;*&quot; /&gt;&quot;
  </code></pre>
  <p>INFO: I tryed multiple combination's of this parameter's, with the URL of the Api.
  (Ex: <code>&lt;access origin=&quot;http://xxx.xxx.xxx/&quot; subdomains=&quot;true&quot;  /&gt;</code>)</p>
  <p>In my Index.html I have this CSP:</p>
  <pre><code> &lt;meta http-equiv=&quot;Content-Security-Policy&quot; 
   content=&quot;default-src *; style-src * 'self' 'unsafe-inline' 'unsafe-eval';
                 script-src * 'self' 'unsafe-inline' 'unsafe-eval';&quot;&gt;
  </code></pre>
  <p>INFO: In here I have tried other combination's of CSP according to <a href="https://github.com/apache/cordova-plugin-whitelist" rel="nofollow noreferrer">Cordova Whitelist Plugin</a></p>
  <p>So, before anyone ask I have installed:</p>
  <ul>
  <li>cordova-whitelist-plugin</li>
  </ul>
  <p>And using Restangular for the requests.</p>
  <p>I can't figure it out, can someone help me?</p>
  <p>EDIT: Request Code</p>
  <blockquote>
  <p>var baseLogin = Restangular.all('http:/xxx.xxx.xxx/api/Login/DoLogin');</p>
  <pre><code>dataApi.doLogin = function (var1, var2, var3, var4, var5) {
      // $http() returns a $promise that we can add handlers with .then()
      var parameter = null;
          parameter = {
              var1: var1,
              var2: var2,
              var3: var3,
              var4: var4,
              var5: var5
          };
      return baseLogin.post(parameter);
  };
  </code></pre>
  </blockquote>
  <p>I use Ionic, so it has CORS issues in browser, to resolve that I use a proxy in ionic.project file, but it's only called in the browser, in the device it is not using this.</p>