无效的HTTP响应code'0' [英] invalid HTTP response code ‘0’

查看:1379
本文介绍了无效的HTTP响应code'0'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想利用使用 CPAINT 一个剧本,我不断收到上述时错误我点击最喜欢的一个项目(一个5星评级系统)。

I am trying to make use of a script that uses CPAINT and I keep getting the error above when I click on favourite an item (a 5 star rating system).

这看起来是做一个AJAX请求,但我不能看到这从我的Firebug调试这个 - 为什么是这样的话

It looks like it is making an AJAX request but I can not see this from my Firebug to debug this - why is this the case?

更重要的是什么错误code 0是什么意思?

More importantly what does the error code 0 mean?

感谢大家的帮助。

推荐答案

一个响应$ C $ 0距离的 XMLHtt prequest 可能意味着你被封锁的同一产地政策。请确保您使用的是相对URL为你的AJAX请求。

A response code of 0 from XMLHttpRequest can mean that you are being blocked by the same origin policy. Make sure that you are using relative URLs for your AJAX requests.

您可能也想看看下面的堆栈溢出后一个可能的解决方案,以解决该同源策略:

You may also want to check out the following Stack Overflow post for one possible solution to workaround the same origin policy:

  • <一个href="http://stackoverflow.com/questions/1980880/xmlhtt$p$pquest-status-returns-0-and-responsetext-is-blank-in-firefox-3-5">XMLHTT$p$pquest.status返回0,responseText的空白在Firefox 3.5

这篇关于无效的HTTP响应code'0'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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