Javascript – “Unsafe JavaScript attempt to access frame with URL…” error being continuously generated in Chrome webkit inspector

facebookfacebook-opengraphgoogle-chromejavascriptwebkit

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.

Best Answer

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 ;)