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

Secure whitelisted URLs not loading in Android

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      None
    • Environment:

      Android 2.3 and 4.2

      Description

      Given the config
      <access origin="http://127.0.0.1*"/> <!-- allow local pages -->
      <access origin="https://mysite.com" subdomains="true"/>
      <access origin="http://mysite.com" subdomains="true"/>

      I would expect both the http and https sites to load. However only the unsecured http URL will load, the secure https URL shows an HTML error page (it's an iframe)

      Even if I add
      <access origin="*"/>
      the same thing happens

      I should add that if I deploy the app straight from eclipse (ie not signing it) the secure URL works fine, so it is only when the whitelist is enforced that it doesn't seem to work

        Attachments

        1. log.txt
          13 kB
          Antony Lees

          Activity

            People

            • Assignee:
              bowserj Joe Bowser
              Reporter:
              antonylees Antony Lees
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: