monaca应用程序可以';无法连接到Android mobile上的https URL
我正在使用Monaca Clude IDE和angularjs部署移动应用程序monaca应用程序可以';无法连接到Android mobile上的https URL,https,monaca,Https,Monaca,我正在使用Monaca Clude IDE和angularjs部署移动应用程序 我使用https请求连接到其他域中存在的Restful API获取数据 有了预览模拟器,一切都很顺利 但当我在android手机上运行该应用程序时,该应用程序无法从https url获取数据 编辑:我添加了此代码 function getUsernamePassword(username, password){ return $http({ method:
我使用https请求连接到其他域中存在的Restful API获取数据
有了预览模拟器,一切都很顺利
但当我在android手机上运行该应用程序时,该应用程序无法从https url获取数据 编辑:我添加了此代码
function getUsernamePassword(username, password){
return $http({
method: 'GET',
url: "https://xxx.xxx.xxx.xxx:8444/api/checkPassword/" + username+"/"+password
}).then(function successCallback(response) {
return response;
}, function errorCallback(response) {
console.log('login faield');
});
}
您是否收到任何错误消息?您使用的是非标准HTTPS端口,您是否尝试了正常(443)端口?monaca禁止跨域请求。