jQuery AJAX抛出的302错误代码是什么? [英] What is the 302 error code that jQuery AJAX is throwing?

查看:667
本文介绍了jQuery AJAX抛出的302错误代码是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ASP.NET MVC和jQuery,并且我有一个在每个页面上重复的UserControl.在每个页面请求中,都会发生AJAX回调.到目前为止一切顺利.

I'm working with ASP.NET MVC and jQuery and I have a UserControl that is repeated on every page. In every page request, an AJAX callback occurs. So far so good.

但是当我在localhost并发布站点时,我注意到此AJAX抛出302错误.这仅在https页上发生,并且仅在FF和Chrome中发生.在IE上,AJAX请求工作正常.

But when I'm in localhost and I publish the site, I notice that this AJAX is throwing a 302 error. This only occurs on https pages, and only in FF and Chrome. On IE, the AJAX request works fine.

这是什么302错误?为什么只在https页上并且仅在FF和Chrome中出现?

What is this 302 error? Why does it only occur on https pages, and only in FF and Chrome?

推荐答案

HTTP 302用于重定向.我的猜测是服务器出现某种错误,您将使用302重定向到错误页面.请检查服务器日志中是否有错误.

HTTP 302 is used for redirection. My guess is that there is some sort of server error and you are being redirected to an error page using 302. Check the server logs for errors.

这篇关于jQuery AJAX抛出的302错误代码是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆