Does --disable-web-security Work In Chrome Anymore?
Solution 1
Check your windows task manager and make sure you kill all chrome processes before running the command.
Solution 2
The new tag for recent Chrome and Chromium browsers is :
--disable-web-security --user-data-dir=c:\my\data
Solution 3
Try this :
Windows:
Run below commands in CMD
to start a new instance of chrome browser with disabled security
Go to Chrome folder:
cd C:\Program Files (x86)\Google\Chrome\Application
Run below command:
chrome.exe --disable-web-security --user-data-dir=c:\my-chrome-data\data
MAC OS:
Run this command in terminal:
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_sess_1" --disable-web-security
Hope this will help both Windows & Mac users!
Solution 4
This flag worked for me at v30.0.1599.101 m
The warning "You are using an unsupported command-line flag" can be ignored. The flag still works (as of Chrome v86).
Solution 5
This should work. You may save the following in a batch file:
TASKKILL /F /IM chrome.exe
start chrome.exe --args --disable-web-security
pause
Related videos on Youtube

Fields
Updated on March 01, 2022Comments
-
Fields about 1 year
I'm trying to do a simple test without changing any server-side code involving a cross-domain AJAX call, and I was wondering if it's possible to use
--disable-web-security
anymore. It seems to not work on Chrome 28.I haven't used it since Chrome version 21; has this feature been dropped?
-
Fields almost 10 yearsThat's from 2011 and also discusses Chrome 21-23. Their solution of killing all processes didn't work; I tried before posting. A workaround would be to download a very old version of Chrome, but I'm wondering if it's still a feature in Chrome 28.
-
-
Fields over 9 yearsThat did it. I just forgot to kill one chrome process.
-
Mukus almost 8 yearsSays invalid agrument start
-
Zahran almost 8 yearsPlease try this in a file batch (I should have introduced a new line before start): TASKKILL /F /IM chrome.exe start chrome.exe --args --disable-web-security pause
-
Zahran almost 8 yearsI am not sure why stackoverflow does not allow me to introduce new line. The above script must have a new line before start and before pause.
-
Mukus almost 8 yearsI did it in a batch file. No worries though. I can open up task manager and kill the process tree for chrome
-
Phylogenesis over 7 yearsA little late, but I've edited your answer as you wanted.
-
Mr Br about 7 yearsThis is working, using only --disable-web-security doesn't.
-
GrandmasterB about 7 yearsOn the second param, be sure to specify a path, like
--user-data-dir=c:\my\data
-
Cripto about 6 yearsSo the warning stating "unsupported command" can be ignored? It's being supported?
-
a.barbieri over 5 yearslet's say I want to enable web security again. How can I do it?
-
inf3rno over 4 yearsWith the current Chrome it doesn't matter. I am browsing with enabled security while e2e testing with disabled security in a different window using Karma...
-
Jyot Mankad over 3 yearsMac one does not work. Almost tried everything after first trying the above one. --disable-site-isolation-trials -> does not work --disable-gpu -> does not work Tried opera also -> no luck
-
CodeChanger over 3 yearsWhich MAC OS you have ?
-
SuperUberDuper almost 3 yearsgot a mac version?
-
SuperUberDuper almost 3 yearsim on catolina, any luck?
-
Coderer almost 3 yearsThe
user-data-dir
flag is now mandatory when trying to disable web security, because it effectively launches a second Chrome "profile". You can run a normal ("with" web security) profile by just launching Chrome with no command line flags, and this "good" session can run at the same time as the unprotected session. -
Coderer almost 3 yearsIn case anybody finds this in 2020 and beyond: this is no longer valid.
disable-web-security
now has no effect if you don't also specifyuser-data-dir
-- you can't disable web security on your default profile. -
SujithaW almost 3 yearsadd a " in front for the is not a recognized command error
-
kay over 2 yearsAnno 2020, as of Chrome 86, yes it works. The message can be ignored.
-
Kay V almost 2 yearsMac command works for me on Big Sur. Not sure if it's a factor, but Chrome was not running when I entered the command. For what it's worth: Chrome then acted as if it were being installed for the first time.
-
Mayank Kataria about 1 yearHow to do in Linux?