Creating Google Chrome shortcut with --disable-web-security

后端 未结 12 1149
南方客
南方客 2020-11-30 12:10

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

相关标签:
12条回答
  • 2020-11-30 12:47

    It's working You have to add that parameter --disable-web-security in Target location after one space

    0 讨论(0)
  • 2020-11-30 12:48

    First search Run, then try this:

    chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security 
    
    0 讨论(0)
  • 2020-11-30 12:48

    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"
    
    0 讨论(0)
  • 2020-11-30 12:51

    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"

    0 讨论(0)
  • 2020-11-30 12:51

    Creating Google Chrome Ubuntu Windows10 chrome.exe --disable-web-security --user-data-dir=c:\my-chrome-data\data

    0 讨论(0)
  • 2020-11-30 12:58

    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/

    0 讨论(0)
提交回复
热议问题