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

iOS InAppBrowser resets CordovaWebView user agent causing whitelist to fail.

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.0.0
    • None
    • None
    • iOS 6.1

    Description

      If I navigate to an anchor using window.location.hash in the InAppBrowser it resets the CordovaWebView agent.

      Original User Agent:

      Mozilla/5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B141 (176830592)

      After IAB closed User-Agent:

      Mozilla/5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B141

      After the IAB is closed, I can make XHR requests to URLs that my config.xml access origin should have blocked.

      Attachments

        1. www.zip
          3 kB
          Marcus Pridham

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mpridham Marcus Pridham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment