You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/02/24 11:43:57 UTC

[GitHub] [cordova-plugin-file] vitto32 edited a comment on issue #352: Accessing cdvfile:// from http://[network-url] in ajax throws CORS policy error on Android

vitto32 edited a comment 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 (targeting 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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org