cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Superdev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-11827) Failed to load resource with cdvfile URL on IOS
Date Thu, 08 Sep 2016 16:25:20 GMT
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


Mime
View raw message