gSkinner - Home

Disable Local Security Errors in Chrome

Posted on March 4, 2012 by Grant Skinner

I’m blogging this mainly for my own benefit, so I can look it up easily whenever I need to:

If you’d like to disable security errors generated from accessing local content in Chrome (ex. reading pixels from a local image), just launch it with the “–disable-web-security” param. So on OSX, you’d type this into Terminal:

open /Applications/Google\ Chrome.app –args -disable-web-security

It lasts until you close Chrome. Handy for testing EaselJS content on your local file system.

Update: I’ve posted a .command file that you can double click in the Finder to run this more easily here.

Follow @gskinner on Twitter for more news and views on interactive media.
6 Comments

Grant, easel is soooooooo awesome!!! thanks for that! cheers;)

Posted by: km on Mar 5, 2012 2:46pm

Useful add-on for Firefox that does a similar thing:

http://addons.mozilla.org/en-US/firefox/addon/forcecors/

Posted by: nick on Mar 8, 2012 9:58am

Thanks! I needed this yet had no idea that it even existed.

Posted by: todd on Mar 19, 2012 9:42pm

Thanks for this Grant.

First off, I love your work with CreateJs.com - awesome stuff, real life saving stuff!

Mine I had to enter like this:

open -a /Users/mccabew/Applications/Google\ Chrome.app --args -disable-web-security

(it needed the .app after application and double - before args)

Posted by: Wynand on Apr 12, 2012 7:44am URL: http://www.aquaonline.com

[...] truco de Grant Skinner Disable Local Security Errors in Chrome para evitar este error si quieres probarlo con Chrome en local. HTML5, Javascript, [...]

Posted by: HTML5 & CreateJS. Jue… on May 15, 2012 3:19am URL: http://www.coconnut.com/blog/2012/05/15/html5…

[...] comentamos el truco de Grant Skinner para [...]

Posted by: Desactivar errores de seg… on May 28, 2012 3:30am URL: http://www.coconnut.com/blog/2012/05/28/desac…

Leave a Reply

Your email is never published nor shared.




You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>