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 2019/10/22 14:26:23 UTC
[GitHub] [cordova-plugin-file] breautek commented on issue #352: Accessing
cdvfile:// from http://[network-url] in ajax throws CORS policy error on
Android
breautek 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-544989389
Why don't you use the actual file reader APIs instead of XHR? XHR is intended to make requests to remote servers, not to "download" local files.
https://github.com/apache/cordova-plugin-file#read-a-file-
Not 100% confident, but I don't believe there is a way in the android sdk to disable cors in the webview.
----------------------------------------------------------------
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