I have developed a mobile application using :
- jquery mobile 1.1
- jquery 1.7.2
- cordova/phonegap 2.0.0
this application fires AJAX post calls to a remote server, something like:
$.ajax(
type: "post",
cache: false,
timeout: 30000,
url: "http://"+ username+":"+password +"@mycompany.com/mysite/and/so/on.asmx",
contentType: "text/xml",
// other params...
The application works fine in Android 2.2 and 2.3.3. So far so good.
The users have upgraded to Android 4.0.3, the main page loads fine, but ajax calls don’t work anymore.
Also in the emulator of android 4.1 it’s the same.
Considering nothing else has changed but the platform, what could have changed in the Webkit layer to cause the problem?
Are there known migration rules to be followed?
thank you
Quite a lot of things are more locked down in newer versions of android to improve security. Passwords included in the url are insecure, especially if you don’t use https, so some browsers no longer support them.
I haven’t seen anything specific to android webview, but it is definitely deprecated in google’s other browser.
http://code.google.com/p/chromium/issues/detail?id=123150
Try setting the credentials in a header instead: