Enumeration
WebKitUpgradeToHTTPSPolicy
unstable since: 2.56
Description [src]
Enum values used to specify how HTTP navigations are upgraded to HTTPS.
This is an optimistic upgrade attempted without any prior knowledge about the host. This is unlike and independent of HSTS which will never downgrade to HTTP.
Only main frame navigations are upgraded; requests to localhost and to IP addresses are never upgraded. Falling back to HTTP is never done for TLS failures, which always fail the load.
Available since: 2.56
Members
WEBKIT_UPGRADE_TO_HTTPS_POLICY_KEEP_AS_REQUESTED-
Do not request an upgrade. Note that this does not disable HSTS, which applies to every navigation.
- Value:
0 - Nickname:
keep-as-requested - Available since: 2.56
- Value:
WEBKIT_UPGRADE_TO_HTTPS_POLICY_AUTOMATIC_FALLBACK_TO_HTTP-
Upgrade HTTP navigations to HTTPS, silently falling back to HTTP if the HTTPS load fails. Cleartext HTTP is still allowed for navigations that cannot be upgraded.
- Value:
1 - Nickname:
automatic-fallback-to-http - Available since: 2.56
- Value:
WEBKIT_UPGRADE_TO_HTTPS_POLICY_ERROR_ON_FAILURE-
Upgrade HTTP navigations to HTTPS and never load insecurely. Navigations that cannot be upgraded, and upgraded navigations whose HTTPS load fails, fail with
WEBKIT_NETWORK_ERROR_HTTP_NAVIGATION_WITH_HTTPS_ONLY. This applies to every scheme that is not registered as secure, not only HTTP, so custom schemes needwebkit_security_manager_register_uri_scheme_as_secure()to remain loadable.- Value:
2 - Nickname:
error-on-failure - Available since: 2.56
- Value: