Chrome 49 plus --disable-web-security

后端 未结 7 1628
星月不相逢
星月不相逢 2020-12-29 07:39

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 Ch

相关标签:
7条回答
  • 2020-12-29 08:13

    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

    0 讨论(0)
  • 2020-12-29 08:17

    This works with chrome 61 too for me -

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

    For linux

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

    I suggest a temp directory

    0 讨论(0)
  • 2020-12-29 08:30

    This doesn't work anymore, since Chrome 80. You have to specify a non-default --user-data-dir to make it work now.

    Original answer:

    You can use your existing data dir, if you don't want to create a new one.

    So on Linux the command to start unsafe Chrome will be something like this:

    google-chrome --user-data-dir=/home/<your username>/.config/google-chrome --disable-web-security
    

    But don't use this Chrome instance for anything except development or debugging, since it's open for a vast amount of web attacks.

    0 讨论(0)
  • 2020-12-29 08:32

    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"
    
    0 讨论(0)
  • 2020-12-29 08:33

    Update: I have found a permanent solution for this disable web security issue.

    step 1: create 1 chrome app shortcut on desktop and rename it anything like "disabled-security.exe"

    step 2: right click on icon and go to properties => change target input box to something like following eg. and save it.

    C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-site-isolation-trials --user-data-dir=c:\chromeSession

    step 3: launch this app, it will work fine as expected

    Note: everytime you need to clear folder "c:\chromeSession" before opening this app

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