请教老师:前端页面发送跨域ajax请求时,能正常发送和接受返回数据,但通过Chrome发现Request Header有警告信息:Provisional headers are shown;请问老师有什么解决的方法呢?
我的ajax代码如下:
$.ajax({
method : 'POST',
xhrFields: {
withCredentials: true
},
crossDomain:true, //允许跨域
contentType : 'application/json',
dataType : 'json',
url : 'http://localhost:8083/add',
data:JSON.stringify({
custCode:'icbc11',
custName:'工商银行11',
custAbbrEnglish:'icbc bank11'
}),
success : function(result){
console.log(result);
}
});
展开