2013-03-25 47 views
2

因此,我正在使用新节点MVC框架Sails.js(https://github.com/balderdashy/sails),并且出现了一个我从未有过的奇怪错误。我尝试实施示例passport.js身份验证策略(https://gist.github.com/theangryangel/5060446)Sails.js包含在文档中,但是当我尝试访问我的主页(http://localhost:1337/)而未登录时,我将路由到http://localhost:1337/login,但它不会加载和铬给我这个错误:Sails.js:在Chrome中遇到'太多请求'错误

This webpage has a redirect loop 
The webpage at http://localhost:1337/login has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer. 
Here are some suggestions: 
Reload this webpage later. 
Learn more about this problem. 
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects. 

有谁知道发生了什么事?

+1

我根本不知道Sails *,但是如果'authenticated'策略也会应用到'/ login',你可能会得到一个重定向循环。 – robertklep 2013-03-25 21:21:45

回答

0

看起来像是来自Passport的消息。如果你愿意,可以跳入IRC(#sailsjs),我们可以看一看。与此同时,@ robertklep的建议对我来说似乎是一个很大的可能性。

相关问题