"Unsafe JavaScript attempt to access frame with URL..." error being continuously generated in Chrome webkit inspector

Neil Sarkar picture Neil Sarkar · Jun 9, 2010 · Viewed 64.9k times · Source

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.

Answer

Dagg Nabbit picture Dagg Nabbit · Jul 25, 2010

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