当我从127.0.0.1发出CORS请求时:
return jQuery.ajax({
'type': 'GET','url': url,xhrFields: {
withCredentials: true
},ContentType: 'application/json',});
然后一切正常:
但是当我将ContentType
的首字母改为小写时:
return jQuery.ajax({
'type': 'GET',contentType: 'application/json',});
然后请求失败:
我想nginx敏感地比较头文件。 这样吗或发生了其他事情... =(