---
title: hasRequestedOptionalAccessToAllHosts
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebextensioncontext/hasrequestedoptionalaccesstoallhosts
---

# hasRequestedOptionalAccessToAllHosts

A Boolean value indicating if the extension has requested optional access to all hosts.

## Declaration

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

## Discussion

Discussion If this property is YES, the extension has asked for access to all hosts in a call to browser.runtime.permissions.request(), and future permission checks will present discrete hosts for approval as being implicitly requested. This value should be saved and restored as needed by the app.
