Basic auth challenge no callback

Hello !

I just ran into a problem with basic authentication that made me loose almost days before i found this bug report at the cordova level :

If using basic auth and trying to connect with wrong logins, we ger a 401 wich isn’t handled properly by cordova. In this case the query simply never ends. No success, no error, just an endless request.

And I was wondering if anyone ran into the same problem and had a “simple” fix that does not involve tweaking the server headers and, if possible, touching the native layer of the app.

If i have to touch the native layer, what would be the appropriate way of doing it if i don’t want to loose my changes everytime i generate the ios project ?

Have a good day !

1 Like

Create a plugin that does what ever you want to do. But from your description, I don’t this this will be very easy.