Skip to content

HttpsOnlyMode

Configure HTTPS-Only Mode.

In HTTPS-Only Mode, Firefox attempts to upgrade HTTP connections to HTTPS and shows a warning page when a site is only available over HTTP. To exempt specific sites from the upgrade, use the HttpAllowlist policy.

FirefoxFirefox ESRFirefox Enterprise
Available since 127Available since 128Available since 149

CCK2 Equivalent: N/A
OMA-URI: HttpsOnlyMode
Preferences Affected: dom.security.https_only_mode

policies.json
{
"policies": {
"HttpsOnlyMode": "allowed"
}
}
JSON schema
HttpsOnlyMode JSON schema
{
"type": "string",
"enum": [
"allowed",
"disallowed",
"enabled",
"force_enabled"
]
}
ValueDescription
allowedHTTPS-Only Mode is off by default, but the user can turn it on.
disallowedHTTPS-Only Mode is off and the user can't turn it on.
enabledHTTPS-Only Mode is on by default, but the user can turn it off.
force_enabledHTTPS-Only Mode is on and the user can't turn it off.
Software\Policies\Mozilla\Firefox\HttpsOnlyMode = "allowed", "disallowed", "enabled", "force_enabled"
<dict>
<key>HttpsOnlyMode</key>
<string>allowed | disallowed | enabled | force_enabled</string>
</dict>