当我访问 asp.net-mvc-3 上的特定网址时我在 Firefox 中收到此错误。有问题的页面是登录屏幕。
页面未正确重定向
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
Chrome 说
This web page has a redirect loop The web page at 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 web page later.
Learn more about this problem.
为什么会发生这种情况?重新加载几次后问题就消失了。
最佳答案
打开Fiddler (download)查看请求,您会发现一些 HTTP 重定向计数,然后浏览器将停止并显示此类消息。您需要调试您的应用程序,也许这是一些交叉重定向、自定义返回 url 逻辑或其他任何内容,没有代码很难理解发生了什么。
关于asp.net-mvc-3 - Firefox 页面未正确重定向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13397105/