简体   繁体   English

Chrome禁用网络安全相同的来源政策不再有效

[英]Chrome disable web security same origin policy no more working

After updating my chrome, I'm unable to disable web security using the --disable-web-security command. 更新我的chrome之后,我无法使用--disable-web-security命令禁用Web安全--disable-web-security I've tried lot of options, but without success, including using the --user-data-dir flag. 我尝试了很多选项,但没有成功,包括使用--user-data-dir标志。

This is the command I'm running: 这是我正在运行的命令:

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

I'm getting the following error: 我收到以下错误:

You are using unsupported command --disable-web-security 您正在使用不受支持的命令--disable-web-security

For mac OS, the steps are as follows: 对于mac OS,步骤如下:

1 - Close down chrome. 1 - 关闭铬。 All instances of chrome must be closed first. 必须先关闭所有chrome实例。

2 - Open Terminal 2 - 开放式终端

3 - Run the following command: 3 - 运行以下命令:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM