You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Superdev (JIRA)" <ji...@apache.org> on 2016/09/08 16:25:20 UTC
[jira] [Created] (CB-11827) Failed to load resource with cdvfile
URL on IOS
Superdev created CB-11827:
-----------------------------
Summary: Failed to load resource with cdvfile URL on IOS
Key: CB-11827
URL: https://issues.apache.org/jira/browse/CB-11827
Project: Apache Cordova
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Plugin File
Affects Versions: 6.1.1, 6.3.1
Reporter: Superdev
In my meteor app, I use cordova-file-plugin to cache images (ImgCache). All pictures are downloaded and saved in persistent storage. When the app load the image from cdvfile url (cdvfile://imgcache/mypicture.png) I got the error : "Failed to load resource: unsupported URL"
The same application works without any problem on Android.
This is the white-list configuration and CORS :
{code:title=config.xml|borderStyle=solid}
<allow-intent href="tel:*" />
<allow-intent href="geo:*" />
<allow-intent href="mailto:*" />
<allow-intent href="sms:*" />
<allow-intent href="market:*" />
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<allow-navigation href="http://localhost" />
<allow-navigation href="*" />
<access origin="*" />
{code}
{code:title=index.html|borderStyle=solid}
<meta http-equiv="Content-Security-Policy" content="default-src * cdvfile: filesystem: file: data: ; style-src 'self' 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; media-src *">
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org