I am developing a WebGL driven application and I want to launch chrome like this from the command line:
open -a Google\\ Chrome --args --disable-web-security
This work for me:
alias cchrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir="/tmp/chrome_dev_session" --disable-web-security'
exec $SHELL
cchrome
command open a new windows of chrome with the disable web security to solve the "access-control-allow-origin" problem