Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome CORS不使用withCredentials=chrome上的真正同步ajax调用_Google Chrome_Firefox_Synchronization_Cross Domain - Fatal编程技术网

Google chrome CORS不使用withCredentials=chrome上的真正同步ajax调用

Google chrome CORS不使用withCredentials=chrome上的真正同步ajax调用,google-chrome,firefox,synchronization,cross-domain,Google Chrome,Firefox,Synchronization,Cross Domain,我正在尝试使用withCredentials=true进行跨域ajax同步调用,我没有收到任何错误,只是浏览器卡住了。我的chrome版本是40.0.2214.115 m 我也尝试了最新版本(35.0)的firefox,但遇到了同样的问题“无效访问错误底层对象不支持参数或操作” 可能的原因是什么,任何输入都会有帮助。这不足以再现错误。添加一个示例代码!顺便说一句,如果我记得很清楚的话,当您将XHR设置为同步模式并尝试使用异步代码(如XHR.onreadystatechange等)时,此错误是典型

我正在尝试使用withCredentials=true进行跨域ajax同步调用,我没有收到任何错误,只是浏览器卡住了。我的chrome版本是40.0.2214.115 m

我也尝试了最新版本(35.0)的firefox,但遇到了同样的问题“无效访问错误底层对象不支持参数或操作”


可能的原因是什么,任何输入都会有帮助。

这不足以再现错误。添加一个示例代码!顺便说一句,如果我记得很清楚的话,当您将XHR设置为同步模式并尝试使用异步代码(如XHR.onreadystatechange等)时,此错误是典型的。。。