Chrome 49 plus --disable-web-security

Viewed 42610

Today (Mar, 15, 2016) chrome stopped working with the --disable-web-security flag. I have tried the following options described in various posts: 1) Kill all instances of Chrome.exe in the windows task manager. 2) add the --use-data-dir flag, there is a current post regarding this, but the answers there do not work anymore

Here is my script I am using:

start chrome.exe --disable-web-security --allow-running-insecure-content --use-data-dir=c:/temp/chrome_dev

Chrome opens under this script with the disable security warning but localhost cross domain calls still fail:

enter image description here

7 Answers

This doesn't work anymore, since Chrome 80. You have to specify a non-default --user-data-dir to make it work now.

Original answer:

You can use your existing data dir, if you don't want to create a new one.

So on Linux the command to start unsafe Chrome will be something like this:

google-chrome --user-data-dir=/home/<your username>/.config/google-chrome --disable-web-security

But don't use this Chrome instance for anything except development or debugging, since it's open for a vast amount of web attacks.

This works with chrome 61 too for me -

chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security

Update: I have found a permanent solution for this disable web security issue.

step 1: create 1 chrome app shortcut on desktop and rename it anything like "disabled-security.exe"

step 2: right click on icon and go to properties => change target input box to something like following eg. and save it.

C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-site-isolation-trials --user-data-dir=c:\chromeSession

step 3: launch this app, it will work fine as expected

Note: everytime you need to clear folder "c:\chromeSession" before opening this app

Related