vitto32 commented on issue #352: Accessing cdvfile:// from http://[network-url] in ajax throws CORS policy error on Android URL: https://github.com/apache/cordova-plugin-file/issues/352#issuecomment-590281848 @Lindsay-Needs-Sleep thanks! My project evolved, and now I need real XHR support to load not only json files but also binary content and possibly chunks of data (mainly encoded audio files). **Android** I solved it using a slightly different version of PR #322 (i used the url format proposed in #296). It seems to work smoothly even if my www folder is on a remote host. I haven't tested it yet in prod mode (www folder under file://) but I'm pretty confident it will work. **iOS** I'm using `cordova-plugin-wkwebview-engine` but at the moment I have no access to xCode so I just have a few possible roads in mind: - try `cordova-plugin-wkwebview-file-xhr` that sounds pretty interesting - try `WKURLSchemeHandler` / `setURLSchemeHandler` approach as you suggested in your PR. (cons: I have to target iOS >= 11) everything started from your precious links to PR and Issues dealing with this. Thanks! The `cordova-plugin-ionic-webview` also sounds as a feasible plan B.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
