Mac Open Chrome Without Cors
Select as the type of document.
Ensure all Google Chrome windows are closed. If Chrome is already running, the command line flags may not take effect. Right-click the Chrome icon in your Dock and select "Quit."
This banner confirms that CORS is currently disabled. You can now test your application. mac open chrome without cors
Save it to your folder.
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' Select as the type of document
A new Chrome window should open. You will see a warning banner at the top that says:
Open the Terminal app (found in Applications > Utilities or via Spotlight Search). Right-click the Chrome icon in your Dock and select "Quit
To open Google Chrome on a Mac with CORS (Cross-Origin Resource Sharing) disabled, you must launch it via the Terminal using the --disable-web-security flag. This is a common workaround for developers who need to test front-end applications against remote APIs without configuring complex server-side headers during local development. For a one-time session, follow these steps: How to disable cors in chrome Mac - Stack Overflow
If possible, avoid disabling browser security entirely. Here are safer alternatives: