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:
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"
For linux
google-chrome --user-data-dir=”/var/tmp/Chrome” --disable-web-security
I suggest a temp directory
Just for OS X user, this worked for me (on El Capitan): /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security --user-data-dir="<some-dir>"
Also works on Yosemite 10.10.5. Please note that --user-data-dir may no longer be left empty. You have to specify some dir.
Do not disable web security. You're opening your accounts to attacks and your local files to being stolen.
Instead use a simple web server. It will take you all of 2 minutes to install and use. Here's one with a gui, and here's several more that run from the command-line
This works with chrome 61 too for me -
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
After some research, I came to know that chrome's "--disable-web-security" now only works with "--user-data-dir". It works fine till chrome V-67
Step 1:
just create Desktop shortcut for chrome in windows and edit it's proporties.
Step 2:
Edit target field and type following code after it's target path...
--user-data-dir="C:\temp\session" --disable-web-security
example: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C:\ChromeSession" --disable-web-security
Where,
--user-data-dir="C:\temp\session" is temporary path to chrome session.
Step 3: save shortcut properties
Step 4: Important : delete/clear "C:\temp\session" folder everytime when you open a window as second time --disable-web-security is not going to work
Thanks for reading..