您的位置:首页 > 其它

Mac上chrome跨域问题

2016-02-22 00:00 429 查看
摘要: Mac上chrome跨域问题

方法一

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

方法二

1.打开 Terminal 进入终端状态,默认的提示符应该是 $;

2.进入 Chrome.app 目录;

$ cd "/Applications/Google Chrome.app/Contents/MacOS/"

3.将原先的启动脚本改个名字;

$ sudo mv "Google Chrome" Google.real

4.使用管道操作创建新的启动脚本,注意其中加入你所需要的启动参数,这里的例子是启用内置的 Flash;

sudo printf '#!/bin/bash\ncd "/Applications/Google Chrome.app/Contents/MacOS"\n"/Applications/Google Chrome.app/Contents/MacOS/Google.real" --disable-web-security "$@"\n' > Google\ Chrome

5.给新的脚本加上运行权限; 

$ sudo chmod u+x "Google Chrome”
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  chrome 浏览器跨域