使用--disable-web-security创建谷歌浏览器快捷方式 [英] creating google chrome shortcut with --disable-web-security

查看:533
本文介绍了使用--disable-web-security创建谷歌浏览器快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过jqueryMobile访问一些本地文件,它在forefox和IE中正常工作,但是chrome提供了一个安全异常。我可以通过使用

  C:\程序文件\Chrome\Chrome来打开chrome被禁用的安全模式来访问本地文件.exe --disable-web-security 

或者通过它运行

  chrome.exe --disable-web-security 

但是有没有什么办法可以在dsktop上创建一个快捷方式,它也会在禁用安全模式下打开chrmoe ..?

解决方案只需克隆桌面上的chrome快捷方式,然后在快捷方式属性中添加参数 - disable-web-security 即可chrome可执行文件路径



 C:\程序文件\Google\Chrome\Application\chrome.exe--disable-web-security 

编辑#1:我改变了谷歌浏览器的路径,旧的不正确。
我刚刚在XP上安装了新的Chrome,但是我收到了一条错误消息,表示不支持该标志。


编辑#2: http:// peter。 sh / experiments / chromium-command-line-switches /

I am tryin to access some local files via jqueryMobile, it works fine in forefox and IE but chrome gives a security exception. I can open chrome is disabled security mode to access local files by using

C:\Program Files\Chrome\Chrome.exe --disable-web-security

or run it via this

chrome.exe --disable-web-security

but is there any way i can create an shortcut on dsktop that will alsways open chrmoe in disabled security mode..?

解决方案

Just clone the shortcut for chrome you have on your desktop, and then in the shortcut properties add the parameter --disable-web-security at the end of chrome executable path

e.g

"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security

Edit #1 : I changed google chrome path, the old one was not correct. I just tried it on XP with fresh Chrome installed, but i got a error message that this flag is not supported.

Edit #2 : http://peter.sh/experiments/chromium-command-line-switches/

这篇关于使用--disable-web-security创建谷歌浏览器快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆