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

Javascript stops working on windows phone 8 when getting a 401 response from ajax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 2.3.0, 2.4.0
    • None
    • None

    Description

      I am using ajax to authenticate with a username and password. This works as expected on iOS, Android and on desktop browsers. However when recieveing a 401 in phonegap for WP8, the app stops responding. Anything else looks ok (200, 404, 500).

      This issue is not seen in IE on the phone, only in phonegap.

      I have found out that if the server does not put "WWW-Authenticate:" in the response header, ajax will exit as expected and other javascript code will run fine.

      Has anyone seen this kind of issue, and a possible solution that does not involve changing things server side?

      Attachments

        Issue Links

          Activity

            People

              purplecabbage Jesse MacFadyen
              akoredenitan Ismael Olusola Jimoh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: