<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BEWebContentFilter/requestPermission(for:referrerURL:presenting:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(cs)BEWebContentFilter(im)requestPermissionForURL:referrerURL:presentingView:completionHandler:"
  },
  "title" : "requestPermission(for:referrerURL:presenting:completionHandler:)"
}
-->

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

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

```
func requestPermission(for url: URL, referrerURL: URL?, presenting presentingView: UIView?) async throws -> BEWebContentFilter.PermissionDecision
```

## 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\abstract Request a blocked URL to be added to built-in web content filter’s allowlist

---

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)