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

Access origin/whitelist for iOS doesn't default to all if access element missing from config.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.7.0
    • None
    • cordova-ios
    • None
    • ios

    Description

      If the <access origin="*"/> element is left out of the config.xml, the default does not allow all URLs as it should, instead it is set only to the following in the CDVConfigParser.m class:

              [self.whitelistHosts addObject:@"file:///*"];
              [self.whitelistHosts addObject:@"content:///*"];
              [self.whitelistHosts addObject:@"data:///*"];
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hollyschinsky Holly Schinsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: