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

Configurable Path For config.xml Fetching In Browser Platform

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1.0, 4.2.0
    • Fix Version/s: None
    • Component/s: cordova-browser
    • Labels:
    • Environment:

      Chrome on OS X

      Description

      1. Create cordova dummy project
      2. Add browser platform
      3. Serve the www dir on anything than the root path of your host, e.g. http://localhost:3000/admin
      4. Load the application in Chrome (or any browser I assume)

      Cordova tries to load /config.xml which fails with HTTP 404:

      cordova.js:846 [Browser][cordova.js][xhrStatusChangeHandler] Could not XHR config.xml: Not Found

      I've seen these but none them seem to provide enough flexibility to support my case and what others have already raised:
      https://issues.apache.org/jira/browse/CB-11274
      https://github.com/apache/cordova-browser/pull/24/commits/8dfd1c7b03b3fb6215888a6d3b1d16ab5c9f316e

      I could send a pull that would examine the global scope for the existence of a getCordovaConfigXmlPath() method and use the return value if present, but hopefully someone can offer something that doesn't rely on the global context to work.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                petermetz Peter (Somogyvari) Metz
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: