title: Cordova 6 app cannot load from file:// path
body: <p>I have updated an existing app to Cordova 6.0.0 and am having problems running it on an iOS device with XCode 7.2.1 targeting iOS 9.</p>
  
  <p>I have installed the WKWebView plugin: <code>cordova-plugin-wkwebview-engine 1.0.2</code></p>
  
  <p>When running the app, which is built with AngularJS, one of the first things it tries to do is open a json file:</p>
  
  <pre><code>$http.get('data/config.json').success(function(data) {
    // do stuff
  });
  </code></pre>
  
  <p>But we get this error in the web view console:</p>
  
  <pre><code>XMLHttpRequest cannot load file:///var/mobile/Containers/Bundle/Application/
  E9D74C94-ADC6-410F-9F41-7CE63CB7877F/Milk.app/www/data/config.json. Cross 
  origin requests are only supported for HTTP.
  </code></pre>
  
  <p>In the config.xml file we have:</p>
  
  <pre><code>&lt;access origin="*" subdomains="true" /&gt;
  </code></pre>
  
  <p>Why is the <strong>file://</strong> request being blocked like this and how can I fix it?</p>
  
  <p>*edit*</p>
  
  <p>According to the <a href="https://github.com/apache/cordova-plugin-wkwebview-engine">plugin page</a>:</p>
  
  <blockquote>
    <p>"In iOS 9, Apple has fixed the issue present through iOS 8 where you
    cannot load locale files using file://, and must resort to using a
    local webserver. However, you are still not able to use XHR from the
    file:// protocol without CORS enabled on your server."</p>
  </blockquote>
  
  <p>What do they mean by <em>"your server"</em>? What server? We are loading a local file, there is no server!</p>