windows系统下的Chrome详解

具体操作步骤如下:

windows系统(Win7)下的Chrome

1、关闭所有打开的chrome。(重要)。否则,将没有效果! 
2、创建chrome的快捷方式,修改快捷方式的目标为:

"C:Program FilesGoogleChromeApplicationchrome.exe" --args --disable-web-security1

如图:创建Chrome的快捷方式 
3、双击我们创建的Chrome快捷方式,打开Chrome,如图出现“您使用的是不受支持的命令行标记:–disable-web-security。稳定性和安全性会有所下降”,表示你取消了跨域限制了,可以随意跨域调用数据了。 
如图:您使用的是不受支持的命令行标记:–disable-web-security。稳定性和安全性会有所下降

Mac os 下面用

/Applications/Google Chrome.app/Contents/MacOS/Google Chrome --disable-web-security1

或者

open -a "Google Chrome" --args --disable-web-security1  Ubuntu?Linux:  chromium-browser --disable-web-security1

用命令行打开 Apple Safafi 方法是:(Mac OS 下)

open -a '/Applications/Safari.app' --args --disable-web-security  /Google Chrome.app --args --disable-web-security --user-data-dir

© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享