我在Opera中调试我的代码。
这是代码:
$.ajax({
type: 'POST',
url: "http://super-site.com/actions.x",
data: "act=super&url=puper",
success: function(data){
alert(data);
}
}).error(function(data, textStatus, errorThrown){
alert(data.status);
});
我收到带有文字“404”的警报,但在Opera Network Inspector请求中返回200,带有所需的数据!
响应:
HTTP/1.1 200 OK
Server: nginx/0.7.67
Date: Thu, 06 Jun 2013 01:07:43 GMT
Content-Type: text/html; charset=WINDOWS-1251
Connection: keep-alive
X-Powered-By: PHP/5.3.3-7+squeeze14
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 26
发生了什么事? (这是跨站点脚本)