gpt4 book ai didi

angularjs - Wakanda ionic 应用程序 session

转载 作者:行者123 更新时间:2023-12-03 08:16:59 26 4
gpt4 key购买 nike

我正在使用 Ionic 框架和 Wakanda 构建移动应用程序。如果我登录到移动应用程序,则不会存储 session 。有谁知道为什么登录后 session 丢失?

(使用网页登录可以)

    $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
}

})

提前致谢!碧 Jade

最佳答案

您必须在项目设置中启用 CORS 并添加 127.0.0.1:8100 然后 session 将被存储。 enter image description here

问候。

关于angularjs - Wakanda ionic 应用程序 session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37036765/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com