mac os系统
直接在命令行中敲入
open -a "Google Chrome" --args --disable-web-security --user-data-dir
有的会显示Unable to find application named ‘Google Chrome’
那就看看你chrome的app名字是什么,然后替换”Google Chrome”
例如:
open -a "Chrome" --args --disable-web-security --user-data-dir
windows系统
直接创建chrome浏览器的快捷方式,在属性中找到打开路径,在...chrome.exe
后面加上...chrome.exe --args --disable-web-security --user-data-dir