<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPage/NavigationPreferences/preferredHTTPSNavigationPolicy",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit0A4PageC21NavigationPreferencesV30preferredHTTPSNavigationPolicyAE20UpgradeToHTTPSPolicyOvp"
  },
  "title" : "preferredHTTPSNavigationPolicy"
}
-->

# preferredHTTPSNavigationPolicy

Used when performing a top-level navigation to a webpage.

```
var preferredHTTPSNavigationPolicy: WebPage.NavigationPreferences.UpgradeToHTTPSPolicy
```

## Discussion

The default value is `.keepAsRequested`. The stated preference is ignored on subframe navigation, and it may be ignored based on system configuration.
The `WebPage.Configuration.upgradeKnownHostsToHTTPS` property supersedes this property for known hosts.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)