【发布时间】:2015-03-17 18:09:01
【问题描述】:
我正在使用以下 jQuery AJAX 调用来访问 SOAP Web 服务:
jQuery.ajax({
url: url,
type: "GET",
dataType: "jsonp text",
crossDomain :true,
data:"i="+'a'+"&j="+'b',
processData: false,
success: OnSuccess,
error: OnError
});
此代码在 IE 中运行良好,但在 Firefox 中得到空响应。进一步搜索,Firefox 似乎默认不允许跨域请求,或者它以不同的方式处理标头信息。
我的应用程序在localhost:8081 上,而我要使用的WebService 在localhost:8080 上。有什么方法可以让 Firefox 发出跨域请求?
【问题讨论】:
-
你检查过firebug的输出吗
-
是的,我检查了,响应是“”
标签: firefox jquery cross-domain