`--disable-web-security`命令似乎不再有效 [英] The `--disable-web-security` command is seems no longer working

查看:558
本文介绍了`--disable-web-security`命令似乎不再有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

允许在Chrome上跨域请求的命令 - disable-web-security 不再有效,我推测归因于最新更新。



是否有解决方法,除了下载旧版本的chrome并禁用更新外?

在相同的问题中提问,关于在Firefox中关闭Web安全性的JavaScript代码段从来不适用于我:

  try {
netscape.security.PrivilegeManager.enablePrivilege(UniversalBrowserRead);
} catch(e){
alert(UniversalBrowserRead failed);
}

页面始终提示 UniversalBrowserRead失败

解决方案

杀死所有实例并重试。今天遇到同样的问题,并且在我杀死chrome之后就可以工作了。


The command --disable-web-security to allow for cross domain requests on Chrome is no longer working, I presume due to the latest update.

Is there a workaround for this, besides downloading an older version of chrome and disabling updates?

Might as well ask in the same question, the javascript snippet suggested to turn off web security in Firefox never works for me:

try {
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
} catch (e) {
    alert("UniversalBrowserRead failed");
}

The page always alerts UniversalBrowserRead failed.

解决方案

Kill all instances and try again. Had the same problem today and after I killed chrome it works.

这篇关于`--disable-web-security`命令似乎不再有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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