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

# upgradeKnownHostsToHTTPS

Indicates whether the web view should automatically upgrade supported HTTP requests to HTTPS.

## Declaration

```swift
@MainActor var upgradeKnownHostsToHTTPS: Bool
```

## Discussion

Discussion The default value of this property is true.
