浏览器跨域设置

2017-08-10  本文已影响88人  hament

Mac:

 open -a "Google Chrome" --args --disable-web-security
 open -a /Applications/Google\ Chrome.app --args --disable-web-security --user-data-dir(后面可以指定目录,例如 = /user/tom/chromeData)
open -a '/Applications/Safari.app' --args --disable-web-security --user-data-dir

Window:

参考链接: http://jingyan.baidu.com/article/c33e3f48857933ea15cbb50a.html

chrome.exe --disable-web-security
PS:Mac-->Chrome如果命令行不成功可以安装一个插件Allow-Control-Allow-Origin

上一篇 下一篇

猜你喜欢

热点阅读