I tried to make an ajax call with basic authentication in a hybrid ios mobile application. An Ajax call does not return anything that it simply does not succeed or fail. But the same ajax call successfully starts with android.
While I checked the outgoing request with wirehark, I found that the authentication header was missing, and 401 was returned from my server, and on the next call, the authentication header was sent along with the request, which returned 301. But it works with android
The same api works fine from my dev server in ios, but doesn't work on my prod server
Any suggestions are welcome.
angularjs authentication ajax ios cordova
Nijas nizam
source share