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:54:45 UTC

[GitHub] [cordova-plugin-file] breautek commented on issue #347: cdvfile: not loading local cordova.js on IOS (even without https)

breautek commented on issue #347: cdvfile: not loading local cordova.js on IOS (even without https)
URL: https://github.com/apache/cordova-plugin-file/issues/347#issuecomment-545002684
 
 
   Not 100% sure on this, but it might be because `cdvfile` is not a supported protocol for cors.
   
   Android (chrome) will error, at least on XHR request from a remote url, explicitly stating that:
   > Cross origin requests are only supported for protocol schemes: http, data, chrome, https.
   
   While here iOS isn't explicitly stating so, perhaps they have the same restriction? Just guessing here.
   
   On a side note, it's not recommended to host your app code externally. If you access device native APIs from that external code then you are breaking terms of service agreement for both the Apple & Google Play store. Your app code should be bundled with the app itself.

----------------------------------------------------------------
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