Mac Open Chrome Without Cors -

Paste the following script into the box (this differs slightly from the Terminal command to work within Automator):

If you need to do this frequently, typing the command every time is tedious. You can create a dedicated "Dev Chrome" app using Automator.

Here is what that long command actually does: mac open chrome without cors

: Crucial. Chrome will not disable web security if it’s sharing a data directory with an active, "secure" session. Specifying a temporary path like /tmp/chrome_dev_test creates a fresh, isolated profile for your session. Workflow Tips

alias chrome-nocors='open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security' Paste the following script into the box (this

A new Chrome window should open. You will see a warning banner at the top that says:

Once you have finished testing, close the "Chrome CORS" window immediately. Do not leave it running in the background. Chrome will not disable web security if it’s

Now, you can launch this special version of Chrome directly from your Dock or Launchpad, just like any other app.

To make this easier to reuse, you can save the command as an in your ~/.zshrc (or ~/.bash_profile ):

To open Google Chrome on macOS without CORS (Cross-Origin Resource Sharing) restrictions, use the following command in :