Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10532

jQuery.load() - Origin null is not allowed by Access-Control-Allow-Origin.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 4.0.0, 6.0.0
    • None
    • cordova-ios
    • None
    • iOS

    Description

      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(){});`

      Attachments

        1. screenshot-1.png
          252 kB
          Adrian Florin Florescu

        Issue Links

          Activity

            People

              jcesarmobile jcesarmobile
              adrianflorinflorescu Adrian Florin Florescu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: