---
title: upgradeKnownHostsToHTTPS
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebviewconfiguration/upgradeknownhoststohttps
---

# upgradeKnownHostsToHTTPS

A Boolean value that indicates whether the web view should automatically upgrade supported HTTP requests to HTTPS.

## Declaration

```swift
var upgradeKnownHostsToHTTPS: Bool { get set }
```

## See Also

### Configuring the web view’s behavior

- [websiteDataStore](webkit/wkwebviewconfiguration/websitedatastore.md)
- [userContentController](webkit/wkwebviewconfiguration/usercontentcontroller.md)
- [processPool](webkit/wkwebviewconfiguration/processpool.md)
- [applicationNameForUserAgent](webkit/wkwebviewconfiguration/applicationnameforuseragent.md)
- [limitsNavigationsToAppBoundDomains](webkit/wkwebviewconfiguration/limitsnavigationstoappbounddomains.md)
