3

So I'm working with the new node MVC framework Sails.js (https://github.com/balderdashy/sails) and I'm getting a weird error I've never had before. I'm trying to implement the example passport.js authentication strategy (https://gist.github.com/theangryangel/5060446) Sails.js includes in the documentation, but when I try to access my homepage (http://localhost:1337/) while not logged in I get routed to http://localhost:1337/login but it doesn't load and chrome gives me this error:

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.

Does anyone know what's going on?

4

1 回答 1

0

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

于 2013-03-26T12:09:47.303 回答