jQuery transport.send RequestHeader可能存在SSL问题
我有两个具有相同代码基的站点。这些站点都是SSL。指向资源的所有链接都位于同一个域上,并且始终使用完整的https路径进行访问 我遇到的问题是,一台服务器没有错误,而另一台服务器显示:jQuery transport.send RequestHeader可能存在SSL问题,jquery,ssl,xmlhttprequest,Jquery,Ssl,Xmlhttprequest,我有两个具有相同代码基的站点。这些站点都是SSL。指向资源的所有链接都位于同一个域上,并且始终使用完整的https路径进行访问 我遇到的问题是,一台服务器没有错误,而另一台服务器显示: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience 及 此错误出现在jQuery-1.11.1.js中,其中未定义的
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience
及
此错误出现在jQuery-1.11.1.js
中,其中未定义的是vare
。相关代码如下:
try {
state = 1;
transport.send( requestHeaders, done );
} catch ( e ) {
// Propagate exception as error if not done
if ( state < 2 ) {
done( -1, e );
// Simply rethrow otherwise
} else {
throw e;
}
}
在域名不起作用的情况下,我得到:
Object {Accept: "*/*", X-Requested-With: "XMLHttpRequest"}
Object {Accept: "application/json, text/javascript, */*; q=0.01", X-Requested-With: "XMLHttpRequest"}
Object {Accept: "application/json, text/javascript, */*; q=0.01", X-Requested-With: "XMLHttpRequest"}
差异是第一个被接受的参数,当它不起作用时出现
我正在使用以下代码拨打电话:
$.ajax({
url: 'https://domain.com/index.php?id=xxx',
type:'get',
dataType: 'json',
success: function(data){
}
});
有人能帮我解释一下吗
提前感谢。请确保将@RequestBody json作为试图发送ajax请求的方法的参数。我得到了这个错误,我的技术堆栈是SpringJava和常用的UI技术 JQuery已经关闭了这个bug
Object {Accept: "*/*", X-Requested-With: "XMLHttpRequest"}
Object {Accept: "application/json, text/javascript, */*; q=0.01", X-Requested-With: "XMLHttpRequest"}
Object {Accept: "application/json, text/javascript, */*; q=0.01", X-Requested-With: "XMLHttpRequest"}
$.ajax({
url: 'https://domain.com/index.php?id=xxx',
type:'get',
dataType: 'json',
success: function(data){
}
});