我正在尝试将AjaxUploader集成到我的网站中,但只有在Opera浏览器中我才有错误,在其他浏览器中它会很好 此外,如果我在新测试服务器上测试此代码,它在Opera浏览器中也会很好。
我无法理解发生了什么事,请帮帮我。
这是Opera调试器的堆栈:
Uncaught exception: ReferenceError: Security error: attempted to read protected variable
Error thrown at line 2216, column 2 in <anonymous function: Sizzle>(query, context, extra, seed) in http://site/assets/js/jquery1.6.js:
if ( !seed && context.nodeType === 9 && !isXML(context) )
called from line 292, column 3 in <anonymous function: find>(selector) in http://site/assets/js/jquery1.6.js:
jQuery.find( selector, this[0], ret );
called from line 230, column 4 in <anonymous function: submit>() in http://site/assets/js/ajaxupload.js:
var response = iframe.contents().find('body').html();
called from line 2693, column 4 in <anonymous function: handle>(event) in http://site/assets/js/jquery1.6.js:
var ret = handler.apply(this, arguments);
called via Function.prototype.apply() from line 2467, column 4 in <anonymous function: add>() in http://site/assets/js/jquery1.6.js:
return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
答案 0 :(得分:1)
看起来像是内置的跨站点脚本攻击防范。以某种形式(您使用的是iFrame吗?),您试图以浏览器禁止的方式从另一个站点访问一个站点上的资源。