搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

HTTPS only mode pre-configuration via cfg/js

more options

Is there any official or unofficial article/website explaining all the about:config settings? Currently i am trying to pre-edit all my custom firefox settings with the autoconfig.cfg I noticed that dns over https can be pre-edited with the cfg, so im pretty sure the setting: enable https only mode for all windows, which by default is disabled for whatever questionable reason, can be pre-activated via cfg.

How could i do that?

Is there any official or unofficial article/website explaining all the about:config settings? Currently i am trying to pre-edit all my custom firefox settings with the autoconfig.cfg I noticed that dns over https can be pre-edited with the cfg, so im pretty sure the setting: enable https only mode for all windows, which by default is disabled for whatever questionable reason, can be pre-activated via cfg. How could i do that?
附加的畫面擷圖

被選擇的解決方法

That is about these two https_only_mode prefs:

  • dom.security.https_only_mode
  • dom.security.https_only_mode_pbm

Note that you can also set dom. prefs via policies.json.

從原來的回覆中察看解決方案 👍 1

所有回覆 (4)

more options

Hello,

I believe you know the spiel about about:config, so I won't include it here.

The about:config setting should be dom.security.https_only_mode (and maybe dom.security.https_only_mode_ever_enabled?) to be set to true.

For more information on setting autoconfig, look at Customizing Firefox Using AutoConfig

more options

選擇的解決方法

That is about these two https_only_mode prefs:

  • dom.security.https_only_mode
  • dom.security.https_only_mode_pbm

Note that you can also set dom. prefs via policies.json.

more options

Thank you both very much, i appreciate your help alot!

Now i included those settings into firefox.cfg any it seems to be working correctly. lockPref("dom.security.https_only_mode", true); lockPref("dom.security.https_only_mode_ever_enabled", true);

由 Firefox_Beginner 於 修改