在Webkit浏览器控制台中出现此错误的原因是众所周知的,并且在错误文本中已经清楚地描述了:
但是对于具有许多可能触发该错误的代码片段(广告、第三方库、特定于站点的脚本)的大型网站而言,该错误消息对于跟踪和调试生成问题的代码行并不太有帮助。是否有任何方法在跨域错误发生时触发堆栈跟踪?Unsafe JavaScript attempt to access frame with URL iframed-content-example.com from frame with URL www.example.com. Domains, protocols and ports must match.