Is it possible to run Chrome with and without web security at the same time?

I found a similar question on Ask Ubuntu. Apparently you can tell Chrome to start a new session by passing it a new user data directory. This means I can now run this command:

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

And a new Chrome window opens with web security disabled. Yay!


Note: This means that window drag & drop won't work between these two windows.


Close all the opened windows in the Chrome browser. If multiple windows are opened, close everything separately. Then you can open Chrome using the following code in "RUN":

chrome.exe --allow-file-access-from-files --disable-web-security

For Mac:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir="/tmp/chrome_dev_session" --disable-web-security 

Replace with your particular path to Chrome if necessary.