Skip to content

Instantly share code, notes, and snippets.

@brianmriley
Last active February 22, 2018 23:03
Show Gist options
  • Save brianmriley/6dd64b63d41b727adbb0 to your computer and use it in GitHub Desktop.
Save brianmriley/6dd64b63d41b727adbb0 to your computer and use it in GitHub Desktop.
Adds an alias to your bash profile to launch chrome in "developers mode", aka less secure. This allows you to use some high-security, and bleeding edge JavaScript like `subtle.crypto` in HTTP instead of HTTPS in localhost.
#######################
# Chrome
alias chrome="open /Applications/Google\ Chrome.app/"
alias chromedev="open /Applications/Google\ Chrome.app/ --args --ignore-certificate-errors --allow-running-insecure-content --reduce-security-for-testing --disable-web-security --unsafely-treat-insecure-origin-as-secure=http://local-dev.siriusxm.com:8890 --user-data-dir=~/Library/Application Support/Google/Chrome/Default"
#######################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment