Sails.js:路由在Chrome中遇到“Too Many Requests”错误

时间:2013-03-25 20:24:02

标签: javascript node.js sails.js

所以我正在使用新节点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,但它没有加载,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 个答案:

答案 0 :(得分:0)

看起来该消息来自Passport。如果你愿意,可以跳进IRC(#sailsjs),我们可以看看。与此同时,@ robertklep的建议对我来说似乎很有可能。