首页 > 其他 > 详细

firefox同步ajax请求报错的问题 A parameter or an operation is not supported by the underlying object

时间:2014-08-14 16:39:49      阅读:410      评论:0      收藏:0      [点我收藏+]
今天在测试系统时,一个很正常的功能在firefox下报错,经过验证在ie和chrome浏览器中功能这个正常。
 
调试后发现:
     请求比其他请求的特殊点在于同步请求。
 
经过firefox的控制台上测试发现错误日志:
 
"[Exception... "A parameter or an operation is not supported by the underlying object" 
   code: "15" nsresult: "0x8053000f (InvalidAccessError)"  location: 
   https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js Line: 6
 
经过排查google后,
http://stackoverflow.com/questions/16668386/cors-synchronous-requests-not-working-in-firefox
 
将ajax请求中的
 
//            xhrFields: {
//                withCredentials: true
//            },
            beforeSend: function(xhr) {
              xhr.withCredentials = true;
            },

经过测试,问题解决。

 
 
 

firefox同步ajax请求报错的问题 A parameter or an operation is not supported by the underlying object,布布扣,bubuko.com

firefox同步ajax请求报错的问题 A parameter or an operation is not supported by the underlying object

原文:http://www.cnblogs.com/sdjnzqr/p/3912603.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!