2013-03-25 3 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

세일즈 *를 전혀 모르지만'authenticated' 정책이'/ login'에도 적용되면 리다이렉트 루프가 생길 수도 있습니다. – robertklep

답변

0

메시지가 Passport에서 오는 것처럼 보입니다. 원하는 경우 IRC (#sailsjs)를 사용하여 살펴볼 수 있습니다. 그 동안 @ robertklep의 제안은 나에게 강한 가능성처럼 보입니다.

관련 문제