You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Tim Croydon (JIRA)" <ji...@apache.org> on 2013/11/14 21:43:22 UTC

[jira] [Commented] (CB-2415) On iOS the ajax error/fail callback is not called after server returns error code 401/unauthorized

    [ https://issues.apache.org/jira/browse/CB-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13822879#comment-13822879 ] 

Tim Croydon commented on CB-2415:
---------------------------------

I'm still seeing this in 3.1.0 on iOS7. Looks like it's been around for a while - this StackOverflow post has a couple of JS workarounds that may help in certain cases: http://stackoverflow.com/questions/12060619/not-getting-401-unauthorised-with-cordova-jquery-ajax-call-upto-phonegap-1-4-i

> On iOS the ajax error/fail callback is not called after server returns error code 401/unauthorized
> --------------------------------------------------------------------------------------------------
>
>                 Key: CB-2415
>                 URL: https://issues.apache.org/jira/browse/CB-2415
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.2.0
>         Environment: OSX 10.8.2, Xcode 4.5.1, iOS Simulator 5.0, 5.1, 6.0, cordova 2.2
>            Reporter: Zach White
>            Assignee: Shazron Abdullah
>              Labels: 401, BasicAuth, iOS
>
> I am seeing the same issue as reported in [CB-2284|https://issues.apache.org/jira/browse/CB-2284] also in iOS. Ajax calls with Authorization header set are not returning but are timing out when the authorization credentials are invalid.



--
This message was sent by Atlassian JIRA
(v6.1#6144)