<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEProxySettings/proxyAutoConfigurationJavaScript",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEProxySettings(py)proxyAutoConfigurationJavaScript"
  },
  "title" : "proxyAutoConfigurationJavaScript"
}
-->

# proxyAutoConfigurationJavaScript

A string containing the Proxy Auto Configuration (PAC) JavaScript source code.

```
var proxyAutoConfigurationJavaScript: String? { get set }
```

## Discussion

If [`autoProxyConfigurationEnabled`](/documentation/NetworkExtension/NEProxySettings/autoProxyConfigurationEnabled) is set to <doc://com.apple.documentation/documentation/Swift/true> then the system will execute the PAC script to determine what proxies to use (if any) for HTTP and HTTPS connections.

---

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)