Start Google Chrome with local file access on Mac OS X

Debugging local contents with Google Chrome on Mac OS X can be hard since local file access is disabled by default.

Enabling local file access is a simple terminal command. So just open your terminal anywhere, make sure Google Chrome is currently not running, copy paste this line and hit enter:

open /Applications/Google\ Chrome.app --args --allow-file-access-from-files

Using Google Chrome Canary is also possible:

open /Applications/Google\ Chrome\ Canary.app --args --allow-file-access-from-files

[Update]
File XMLHttpRequest can also be enabled in Opera visiting opera:config#UserPrefs|AllowFileXMLHttpRequest