<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEURLFilterManager/setConfiguration(pirServerURL:pirPrivacyPassIssuerURL:pirAuthenticationToken:controlProviderBundleIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "s:16NetworkExtension18NEURLFilterManagerC16setConfiguration12pirServerURL0g17PrivacyPassIssuerI00G19AuthenticationToken31controlProviderBundleIdentifiery10Foundation0I0V_AKSgS2StKF"
  },
  "title" : "setConfiguration(pirServerURL:pirPrivacyPassIssuerURL:pirAuthenticationToken:controlProviderBundleIdentifier:)"
}
-->

# setConfiguration(pirServerURL:pirPrivacyPassIssuerURL:pirAuthenticationToken:controlProviderBundleIdentifier:)

Sets a URL filter configuration with the required PIR server attributes and app extension information.

```
func setConfiguration(pirServerURL: URL, pirPrivacyPassIssuerURL: URL?, pirAuthenticationToken: String, controlProviderBundleIdentifier: String) throws
```

## Parameters

`pirServerURL`

The PIR server URL.  The URL must contain only the domain name of the PIR server, and must match the value defined in the `NSPIRConfiguration` dictionary in the information property list.

`pirPrivacyPassIssuerURL`

The PIR Privacy Pass issuer URL. The URL must contain only the domain name of the Privacy Pass issuer. If `nil`, the configuration uses the PIR server URL as the Privacy Pass issuer URL. This value must match the value defined in the `NSPIRConfiguration` dictionary in the information property list.

`pirAuthenticationToken`

An HTTP bearer token that authenticates the person using your app. The system uses this token to attest that it’s a valid user when requesting anonymous authentication tokens.

`controlProviderBundleIdentifier`

The bundle identifier of the [`NEURLFilterControlProvider`](/documentation/NetworkExtension/NEURLFilterControlProvider) app extension.

---

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)