我试图从我的angularjs authService使用“https://localhost:44333/identity/connect/token”发布到我的身份服务器时遇到以下错误,但是当我从Postman或Fiddler发布时,所有工作都正常。unableionto_verify_leaf_signature当从AngularJs /科尔多瓦发布
我有自己创建了我进口,所以当我在我的浏览器浏览到https://localhost:44333/identity一切都很好的证明。
我可以收集来自周围的Googling是,它必须是与证书什么的,但我只能找到node.js中的主题我试图从angularjs服务进行身份验证到IdentityServer3,我使用owin在上面的url上自我托管。
以下是我的angulajs登录代码如下所示:
var _login = function (credentials) {
var user = { grant_type: 'password', username: credentials.userName, password: credentials.password, scope: 'salesApi' }
var urlEncodedUrl = {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Basic ' + base64Encoded
};
console.log(base64Encoded);
$http.post(serviceBase + 'connect/token', { headers: urlEncodedUrl }, { data: user }).success(function (data, status, headers, config) {
localStorageService.set('authorizationData', { bearerToken: data.access_token, userName: credentials.userName });
_authentication.isAuth = true;
_authentication.userName = credentials.userName;
_authentication.bearerToken = data.access_token;
}).error(function (err, status) {
console.log(err);
_logOut();
});
};
任何的想法是什么,我丢失或如何解决这个问题?
更新:这实际上是一个涟漪模拟器或科尔多瓦问题?
虽然这可能在理论上回答这个问题,但[这将是更可取的](// meta.stackoverflow.com/q/8259)在这里包括答案的基本部分,并提供参考链接。 – Tunaki