我已经遵循了heroku指南here在我的角度站点上使用express.js 配置stormpath 身份验证。我成功地导航到我网站根目录的/login 和/register 页面。然而,当我尝试注册时,我总是没有创建用户,我的页面如下图所示。
最佳答案
问题实际上是我试图将stormpath 添加到已配置为单页应用程序(角度)的网站。为此,您需要包含以下内容
app.use(stormpath.init(app, {
web: {
spa:{
enabled: true,
view: path.join(__dirname, 'public', 'index.html')
}
}
}
将“public”替换为单页应用程序的目录,并相应地替换“index.html”
在express-stormpath文档中找到了答案here
关于node.js - Heroku Stormpath 注册页面无响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36104629/