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”
方法一
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 OS安装在VMWare下及Chrome OS的关键特性和一些截图
- 小白观察:微软释放出其基于 Chromium 的 Edge 浏览器
- Chrome的hack写法以及CSS的支持程度图示
- Chrome Visual Studio 2005下的编译过程
- 在firefox和Chrome下关闭浏览器窗口无效的解决方法
- 让谷歌浏览器Google Chrome支持eWebEditor的方法
- 谷歌Chrome浏览器扩展程序开发小记
- chrome下jq width()方法取值为0的解决方法
- chrome不支持form.submit的解决方案
- chrome扩展学习 右键菜单实现代码
- chrome浏览器不支持onmouseleave事件的解决技巧
- javascript判断chrome浏览器的方法
- Ubuntu、Linux Mint一键安装Chrome浏览器的Shell脚本分享
- 如何解决ajax在google chrome浏览器上失效
- Linux下的Chrome快捷键详细整理
- Chrome内核下由ashx输出的js代码不起作用的解决方法
- chrome调试javascript详解
- 使用Chrome浏览器调试Android App详解
- Chrome Web App开发小结
- FCKeditor 在chrome中不显示问题