gpt4 book ai didi

javascript - Sails.js:路由在 Chrome 中遇到 'Too Many Requests' 错误

转载 作者:搜寻专家 更新时间:2023-11-01 00:08:51 25 4
gpt4 key购买 nike

所以我正在使用新的 Node 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.

有人知道这是怎么回事吗?

最佳答案

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

关于javascript - Sails.js:路由在 Chrome 中遇到 'Too Many Requests' 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15624061/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com