Skip to content

Instantly share code, notes, and snippets.

@BRELID
Created August 19, 2019 10:30
Show Gist options
  • Save BRELID/81bdf39be1fb0fee8f7d95c01796b442 to your computer and use it in GitHub Desktop.
Save BRELID/81bdf39be1fb0fee8f7d95c01796b442 to your computer and use it in GitHub Desktop.
Run Chrome browser without CORS
Linux:
google-chrome --disable-web-security
Windows:
1) Right click on desktop, add new shortcut
2) Add the target as "[PATH_TO_CHROME]\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp
ex on Windows 10 :
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp
3) Click OK.
OSX:
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security
@underc0delabs
Copy link

Is not working with the last Chrome version

@ngoxuantinh
Copy link

yeah it not working now

@aayushahuja21
Copy link

aayushahuja21 commented Dec 15, 2023

Use this: "[PATH_TO_CHROME]\chrome.exe" --disable-web-security --user-data-dir="C:/ChromeDevSession"
It works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment