我正在使用Ionic框架和Wakanda构建一个移动应用程序。如果我登录到移动应用程序,会话不会被存储。有人知道为什么在登录后会话会丢失吗?
(使用网页登录确实有效)
$wakanda.$login("username", "password").$promise.then(function(e) {
if (e.result === true) {
$wakanda.$currentUser().$promise.then(function(e){
console.log(e)
// e.result == null, so the session isn't stored.
})
} else {
//Wrong username/password
}
})提前感谢!贾斯珀
发布于 2016-05-06 00:22:40
您必须在项目设置中启用CORS,并添加127.0.0.1:8100,然后会话将被存储。

致以问候。
https://stackoverflow.com/questions/37036765
复制相似问题