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.
I have installed the WKWebView plugin:
// do stuff
XMLHttpRequest cannot load file:///var/mobile/Containers/Bundle/Application/
origin requests are only supported for HTTP.
<access origin="*" subdomains="true" />
"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."
This is a known issue, local
XmlHttpRequests are not allowed in
For more known issues see https://issues.apache.org/jira/browse/CB-10237?jql=labels%20%3D%20wkwebview-known-issues
If you want to make local ajax call to work you should use the
wkwebview-engine-localhost plugin (https://github.com/apache/cordova-plugins/tree/master/wkwebview-engine-localhost)
WKWebView plugin (https://github.com/Telerik-Verified-Plugins/WKWebView).
Both of them will use a local webserver that solves some of the known WKWebView limitations.