---
title: "requestPermission(for:referrerURL:presenting:completionHandler:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/bewebcontentfilter/requestpermission(for:referrerurl:presenting:completionhandler:)"
---

# requestPermission(for:referrerURL:presenting:completionHandler:)

## Declaration

```swift
func requestPermission(for url: URL, referrerURL: URL?, presenting presentingView: UIView?, completionHandler: @escaping @Sendable (BEWebContentFilterPermissionDecision, (any Error)?) -> Void)
```

```swift
func requestPermission(for url: URL, referrerURL: URL?, presenting presentingView: UIView?) async throws -> BEWebContentFilterPermissionDecision
```

## Parameters

- `url`: The URL to be added.
- `referrerURL`: The URL that initiated the permission request. This determines whether or not parent approval is done remotely or on-device.
- `presentingView`: The view to present permission UI from.
- `completionHandler`: The completion block to be called when the add operation is complete, with result of the operation. Result is BEWebContentFilterPermissionDecision that holds the outcome of the request for access.

## Discussion

Discussion Request a blocked URL to be added to built-in web content filter’s allowlist
