I am trying to access some local files via jqueryMobile, it works fine in Firefox and IE but Chrome gives a security exception. I can open Chrome in disabled security mode t
It's working You have to add that parameter --disable-web-security in Target location after one space
First search Run
, then try this:
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
You must use the following flags
--disable-web-security
--user-data-dir
but also pass the path to your chrome user profile
See this:
https://productforums.google.com/forum/#!topic/chrome/9nHBcjNW384 https://bugs.chromium.org/p/chromium/issues/detail?id=575690
So now i have top pass my user profile path:
C:\Users\user\projects\project>"C:\Program Files (x86)\Google\Chrome\App
lication\chrome.exe" --disable-web-security --user-data-dir="C:\Users\user\A
ppData\Local\Google\Chrome\User Data\Default"
chrome security command for windows open run->than paste this command and make sure you have to close all windows before run this command
"chrome --disable-web-security --user-data-dir"
Creating Google Chrome Ubuntu Windows10 chrome.exe --disable-web-security --user-data-dir=c:\my-chrome-data\data
Just clone the shortcut for chrome you have on your desktop, and then in the shortcut properties add the parameter --disable-web-security
(and --user-data-dir
) at the end of chrome executable path
e.g
"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="C:\tmpChromeSession"
Edit #1 : I changed google chrome path, the old one was not correct. I just tried it on XP with fresh Chrome installed, but i got a error message that this flag is not supported.
Edit #2 : http://peter.sh/experiments/chromium-command-line-switches/