@ahovakimyan/cordova-plugin-wkwebviewxhrfix

Cordova plugin to fix local file XHR access inside WKWebView for Cordova iOS 6+

Usage no npm install needed!

<script type="module">
  import ahovakimyanCordovaPluginWkwebviewxhrfix from 'https://cdn.skypack.dev/@ahovakimyan/cordova-plugin-wkwebviewxhrfix';
</script>

README

cordova-plugin-wkwebviewxhrfix

Cordova iOS plugin to fix local file access via XHR with WKWebView for Cordova iOS 6+

About

Install this plugin to fix local file access via XHR with WKWebView for Cordova iOS 6+ which is accompanied with an error message about "Cross origin requests are only supported for HTTP".

Installation

Install the plugin by running:

cordova plugin add @ahovakimyan/cordova-plugin-wkwebviewxhrfix

Or install from github

cordova plugin add https://github.com/AraHovakimyan/cordova-plugin-wkwebviewxhrfix

Notes

This plugin does not depend on any other additional plugins and does not require additional permissions.

Modified TheMattRay plugin to support Cordova iOS 6+.

That's it! Seriously!