mac 本地跨域

完全退出chrome后终端下输入以下命令:

chrome49以前版本

open -a "Google Chrome" --args --disable-web-security

chrome49以后版本

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

Safari

open -a '/Applications/Safari.app' --args --disable-web-security

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

posted @ 2017-05-08 15:27  无所事事者爱嘲笑  阅读(1545)  评论(0编辑  收藏  举报