title: axios requests throw "Network Error" on Android (Cordova container)
body: <p>I have wrapped a <code>Vue</code> app into a Cordova container and deployed on Android via Android Studio. Each request that goes out to my server is failing with the message <code>Error: Network Error</code>.</p>
  <p>This is <strong>not</strong> an issue in browser or iOs.</p>
  <p>I have researched this issue and tried various solutions:</p>
  <ol>
  <li><p>I have installed the <code>cordova-plugin-whitelist</code> plugin and configured as described in the <a href="https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist/" rel="nofollow noreferrer">documentation</a></p>
  </li>
  <li><p>I have set permissions in the <code>AndroidManifest.xml</code> file:</p>
  </li>
  </ol>
  <pre><code>&lt;edit-file mode=&quot;merge&quot; parent=&quot;/manifest/uses-permission&quot; target=&quot;AndroidManifest.xml&quot;&gt;
    &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;
    &lt;uses-permission android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot; /&gt;
  &lt;/edit-file&gt;
  </code></pre>
  <ol start="3">
  <li>I have setup a <code>&quot;Content-Security-Policy&quot;</code> tag in meta:</li>
  </ol>
  <pre><code>&lt;meta data-n-head=&quot;1&quot; http-equiv=&quot;Content-Security-Policy&quot; content=&quot;default-src * 'unsafe-inline' 'unsafe-eval'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * 'unsafe-inline';&quot;&gt;
  </code></pre>
  <ol start="4">
  <li><p>I have changed my server address from <code>localhost:3000</code> to my server's IP address as instructed in this answer: <a href="https://stackoverflow.com/questions/54108848/network-error-with-axios-and-android-emulator">Network error with axios and android emulator</a> - I also tried to run it via a local-tunnel to have a &quot;real&quot; API URL - same issue</p>
  </li>
  <li><p>As instructed in the thread above, I have also added headers:</p>
  </li>
  </ol>
  <pre><code>&quot;Content-Type&quot;: &quot;application/x-www-form-urlencoded&quot;,
    Accept: &quot;application/json&quot;
  </code></pre>
  <p>Still <code>Error: Network Error</code>.
  I am almost sure this has to do with permissions but there is nothing more I could configure to make it work.</p>
  <p>I am testing this on <strong>Android 10.0+</strong> device using <strong>Cordova 10</strong>.</p>
  <p><strong>Axios</strong> on 0.20.0.</p>