<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/URLSessionConfiguration/connectionProxyDictionary",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSURLSessionConfiguration(py)connectionProxyDictionary"
  },
  "title" : "connectionProxyDictionary"
}
-->

# connectionProxyDictionary

A dictionary containing information about the proxy to use within this session.

```
var connectionProxyDictionary: [AnyHashable : Any]? { get set }
```

## Discussion

This property controls which proxy tasks within sessions based on this configuration use when connecting to remote hosts.

Prefer using [`proxyConfigurations`](/documentation/Foundation/URLSessionConfiguration/proxyConfigurations), which supports secure proxy and relay types.

The default value is `NULL`, which means that tasks use the default system settings.

See `Global Proxy Configuration` for more information about these dictionaries.

---

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)