cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Florin Florescu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10532) jQuery.load() - Origin null is not allowed by Access-Control-Allow-Origin.
Date Mon, 08 Feb 2016 12:13:39 GMT

    [ https://issues.apache.org/jira/browse/CB-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15136867#comment-15136867
] 

Adrian Florin Florescu commented on CB-10532:
---------------------------------------------

[~jcesarmobile] Yes and yes


`<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline';
script-src 'self' 'unsafe-inline' 'unsafe-eval'">`

> jQuery.load() - Origin null is not allowed by Access-Control-Allow-Origin.
> --------------------------------------------------------------------------
>
>                 Key: CB-10532
>                 URL: https://issues.apache.org/jira/browse/CB-10532
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 4.0.0, 6.0.0
>         Environment: iOS
>            Reporter: Adrian Florin Florescu
>         Attachments: screenshot-1.png
>
>
> Trying to load a HTML file with jQuery from the root of the www folder gives me an error,
even if allow origin is set to * in the config.xml
> XMLHttpRequest cannot load file:///var/mobile/Containers/Bundle/Application/ECC92D3C-4C93-477E-A1FB-8450F6B3A913/Vivre.app/www/images/icons/dest/index.html?_=1454600799619.
Origin null is not allowed by Access-Control-Allow-Origin.
> `$( "#js-svg-inline" ).load( "./images/icons/dest/index.html #svg", function(){});`



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