title: 'file://' has been blocked by CORS policy
body: <p>I am using ionic3 on my application. I am getting below error for android application for the first time installation. Then after relaunching the app is working correctly.</p>
  
  <blockquote>
    <p>Access to XMLHttpRequest at '' from origin 'file://' has
    been blocked by CORS policy: Response to preflight request doesn't
    pass access control check: No 'Access-Control-Allow-Origin' header is
    present on the requested resource.</p>
  </blockquote>
  
  <p>software specification is:</p>
  
  <pre><code>cordova 9.0.0
  ionic 3
  Android platform 8.0.0
  Node 10.15.3
  Angular 4
  </code></pre>
  
  <p>plugin list:</p>
  
  <pre><code>cordova-plugin-camera 4.0.3 "Camera"
  cordova-plugin-compat 1.2.0 "Compat"
  cordova-plugin-device 2.0.2 "Device"
  cordova-plugin-firebase-lib 3.3.0 "Google Firebase Plugin"
  cordova-plugin-geolocation 2.4.3 "Geolocation"
  cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
  cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
  cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
  cordova-plugin-ionic-webview 1.1.19 "cordova-plugin-ionic-webview"
  cordova-plugin-market 1.2.0 "Market"
  cordova-plugin-network-information 2.0.1 "Network Information"
  cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
  cordova-plugin-splashscreen 5.0.2 "Splashscreen"
  cordova-plugin-statusbar 2.4.2 "StatusBar"
  cordova-plugin-whitelist 1.3.3 "Whitelist"
  cordova.plugins.diagnostic 4.0.8 "Diagnostic"
  es6-promise-plugin 4.2.2 "Promise"
  info.protonet.imageresizer 0.1.1 "Image Resizer"
  </code></pre>
  
  <p>Solution tried:</p>
  
  <ol>
  <li>whitelist plugin restricted to 1.3.3</li>
  <li><p>added below lines</p>
  
  <pre><code>&lt;allow-intent href="file://*" /&gt;
  &lt;allow-intent href="file://" /&gt;
  &lt;allow-navigation href="file://" /&gt;
  &lt;allow-navigation href="file://*" /&gt;
  &lt;allow-navigation href="*" /&gt;
  </code></pre></li>
  <li><p>checked for upgrading webview and whitelist plugin as well.
      Nothing worked.</p></li>
  </ol>
  
  <p>Please suggest for changes if needed. Even in production build, we have not published new build. The old bbuild is getting this issue</p>