“不安全的JavaScript尝试使用URL访问帧”在Chrome Webkit检查器中不断生成错误 [英] "Unsafe JavaScript attempt to access frame with URL..." error being continuously generated in Chrome webkit inspector

查看:147
本文介绍了“不安全的JavaScript尝试使用URL访问帧”在Chrome Webkit检查器中不断生成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Facebook API时,Chrome(或任何其他Webkit浏览器)会抛出大量这些不安全的JavaScript尝试使用URL访问框架。



它不会干扰实际的操作,但它确实使得javascript控制台基本上不可用。



我想知道是否有办法抑制这些错误专门在控制台中?或者如果还有其他解决方案,你们可以想到,我真的很感激。



谢谢。

解决方案

您可以通过使用 - disable-web-security 命令行选项运行chrome来允许测试期间的跨域请求。这应该可以摆脱错误(并允许FB监视您的测试;)


Chrome (or any other webkit browser) throws a ton of these "Unsafe JavaScript attempt to access frame with URL..." when working with the Facebook API for example.

It doesn't interfere with actual operation, but it does make the javascript console basically unusable.

I'd like to know if there is a way to suppress these errors specifically in the console? Or if there are other solutions you guys can think of, I would really appreciate it.

Thanks.

解决方案

You could allow cross-domain requests during testing by running chrome with the --disable-web-security command line option. This should probably get rid of the error (and allow FB to spy on your testing ;)

这篇关于“不安全的JavaScript尝试使用URL访问帧”在Chrome Webkit检查器中不断生成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆