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

White-list exception enhancements for plugins

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • cordova-ios
    • None

    Description

      See CB-1695

      1. CDVViewController needs a UserAgent property that plugins can query, so they can set their NSURLRequest User-Agent to the same UserAgent, so they can take advantage of the white-list. Right now, any other network connection that is not part of the main Cordova UIWebView is excepted from the white-list with the changes in CB-1695.
      2. Have a way for plugins to query the whitelist before sending out requests
      3. The UA in (1) should be cached after being discovered (since it requires a costly UIWebView instantation the first time). Cache the iOS version as well, so that we invalidate the UA if the iOS version changes. Also, hook into locale change notifications, if a locale change happens, invalidate the cached UA value as well.

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              shazron Shazron Abdullah
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: