You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2016/02/08 13:26:39 UTC

[jira] [Closed] (CB-10532) jQuery.load() - Origin null is not allowed by Access-Control-Allow-Origin.

     [ https://issues.apache.org/jira/browse/CB-10532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jcesarmobile closed CB-10532.
-----------------------------
    Resolution: Duplicate
      Assignee: jcesarmobile

It's a known limitation of the wkwebview

See https://issues.apache.org/jira/browse/CB-10143 for more details

> 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
>            Assignee: jcesarmobile
>         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