Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome 49 plus --disable-web-security

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

like image 905
John Maloney Avatar asked Mar 15 '16 16:03

John Maloney


2 Answers

I have solutions that are using --disable-web-security.

Finally I found solution. Now chrome just will accept it if you set --user-data-dir together. You will have different instances when you use it. Try it:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="D:\chrome"
like image 85
Rafael Alcantara Avatar answered Sep 23 '22 08:09

Rafael Alcantara


For linux

google-chrome  --user-data-dir=”/var/tmp/Chrome” --disable-web-security

I suggest a temp directory

like image 33
Adam111p Avatar answered Sep 22 '22 08:09

Adam111p