Chrome 禁用网络安全同源策略不再有效

Chrome disable web security same origin policy no more working

更新我的 chrome 后,我无法使用 --disable-web-security 命令禁用网络安全。我尝试了很多选项,但都没有成功,包括使用 --user-data-dir 标志。

这是我的命令 运行:

start "" "c:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="d:/_chrome_dev" --disable-web-security

我收到以下错误:

You are using unsupported command --disable-web-security

我改用了这个 Chrome 插件并且它有效:) https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi

对于macOS,步骤如下:

1 - 关闭 chrome。 chrome 的所有实例必须先关闭。

2 - 打开终端

3 - 运行 以下命令:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security --user-data-dir

1)您必须确保 没有 个进程 运行。检查任务管理器,并查找 chrome.exe,如果存在则将其关闭。

2) 然后用命令打开"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -disable-web-security -user-data-dir