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

Android CordovaChromeClient doesn't respect Wifi proxy bypass list

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.5.0
    • Fix Version/s: None
    • Component/s: cordova-android
    • Environment:

      Android 4.4.2

      Description

      When running a cordova app on an Android 4.4.2 device, the device does not respect the "Bypass proxy for:" list in the device's WiFi settings.

      My ajax request ultimately fails, because authentication to the proxy fails. The end points I am requesting are internal servers which are listed as exclusions in the setting mentioned above, so they should never be going through the proxy and ultimately failing.

      My listed exclusions are:
      company.com,subdomain.company.com

      Changing the Wifi exclusion setting to only include hostname.subdomain.company.com fixes the issue, but this is not a feasible.

      This issue is not present in older versions of Android, holding all other variables constant. The issue is also not present when creating a HttpURLConnection in native java code, it only happens with ajax requests through javascript. This leads me to believe it has something to do with the Chrome WebView which was introduced in Android 4.4 KitKat.

      Any ideas? Can the proxy exclusion be manually over ridden from the app?

      More details about the Chrome Web View here:
      https://developer.chrome.com/multidevice/webview/overview

        Attachments

          Activity

            People

            • Assignee:
              agrieve Andrew Grieve
              Reporter:
              njtman Jon Tancer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: