在Firefox中禁用跨域Web安全 [英] Disable cross domain web security in Firefox

查看:1831
本文介绍了在Firefox中禁用跨域Web安全的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Firefox中,如何在Chrome中执行相当于 - disable-web-security 的操作。这已经张贴了很多,但永远不是一个真正的答案。大多数是加载项的链接(其中一些在最新的Firefox中不起作用,或根本不工作),你只需要在服务器上启用支持。

In Firefox, how do I do the equivalent of --disable-web-security in Chrome. This has been posted a lot, but never a true answer. Most are links to add-ons (some of which don't work in the latest Firefox or don't work at all) and "you just need to enable support on the server".


  1. 这是临时测试。我知道安全隐患。

  2. 我无法在服务器上打开CORS,我尤其永远不能允许localhost或类似的。

  3. 一个标志,或设置,或某事会比插件好多了。我也尝试过: http://www-jo.se/f.pfleger/forcecors ,但必须是错误,因为我的请求完全为空,但Chrome中的相同请求仍然正常。

  1. This is temporary to test. I know the security implications.
  2. I can't turn on CORS on the server and I especially would never be able to allow localhost or similar.
  3. A flag, or setting, or something would be a lot better than a plugin. I also tried: http://www-jo.se/f.pfleger/forcecors, but something must be wrong since my requests come back as completely empty, but same requests in Chrome come back fine.

推送到prod,然后,将在一个允许的域。

Again, this is only for testing before pushing to prod which, then, would be on an allowable domain.

推荐答案

几乎在你看来,人们参考about:config和security.fileuri.strict_origin_policy。有时候还有network.http.refere.XOriginPolicy。

Almost everywhere you look, people refer to the about:config and the security.fileuri.strict_origin_policy. Sometimes also the network.http.refere.XOriginPolicy.

对我来说,这些都没有任何效果。

For me, none of these seem to have any effect.

此评论表示Firefox中没有内置方式(从2开始) / 8/14)。

This comment implies there is no built-in way in Firefox to do this (as of 2/8/14).

这篇关于在Firefox中禁用跨域Web安全的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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