任何想法为什么XMLHttpRequest
在Pebble JS Framework
中使用正确的凭据会在Android上失败基本身份验证,但在iOS中有效?XMLHttpRequest基本身份验证失败
完全相同的代码,沿着线:
var req = new XMLHttpRequest();
req.open(method, url, true, user, pass);
req.send(data);
req.onreadystatechange = function() { ... }
返回401从Android的卵石的应用程序,但在IOS正确地进行认证。
你看过吗? http://stackoverflow.com/questions/11025213/ios-authentication-using-xmlhttprequest-handling-401-reponse – JakeGould
Downvoters团结:)或至少'splain自己。它是“你试过的是什么”?或者“显示你的努力/代码”?我会很乐意听。 –
@JakeGould不幸的是,它不适用于我。 Pebble应用程序的JS部分已经在iOS上正常工作。并且总是在Android Pebble JS框架中失败 - 即使使用正确的凭据 –