ajax - Basic Authentication fails in cordova ios -


i trying make ajax call basic authentication on hybrid mobile ios application. ajax call returns nothing hangs no success nor failure. same ajax call fires android.

while checking outgoing request wireshark found authentication header missing , 401 returning server , on subsequent call authentication header send along request returns 301. but works android

the same api working fine dev server in ios fails in prod server

any suggestions appreciated

i'm using cordova 4.2.0.

i have observed in case of 401 response "www-authenticate: basic" header, ios/uiwebview seems swallow response instead of passing application layer, gives effect of service never responding. perhaps prevent authentication popups.

in event behavior unexpected!

edit: found cordova bug report problem: https://issues.apache.org/jira/browse/cb-2415


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -