如何在 mac 中以不安全模式启动 chrome?

How can I start chrome in insecure mode in mac?

我知道如何使用以下选项通过命令行以不安全模式启动 chrome:--disable-web-security --disable-gpu。 MAC OS 怎么办? 所以我要进入 chrome 安装位置和 运行 这个命令

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

但是报错zsh: command not found: chrome.exe

如果您在 Mac 上,这是正确的命令(Mac 不能打开 .exe 文件):

open -a "Google Chrome" --args --disable-web-security --user-data-dir=/tmp/chrome

您需要指定两个参数才能使命令生效。第一个禁用网络安全,第二个指定一个文件夹,Chrome 将在其中创建临时配置文件并保留必要的数据。