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

# allowsCellularAccess

A Boolean value that indicates whether a connection can use the device’s cellular network (if present).

```
var allowsCellularAccess: Bool { get set }
```

## Discussion

Setting this property to <doc://com.apple.documentation/documentation/Swift/true> (the default) makes the request eligible to run over cellular, subject to other considerations (including, but not limited to, the [`allowsCellularAccess`](/documentation/Foundation/URLSessionConfiguration/allowsCellularAccess) property of the [`URLSessionConfiguration`](/documentation/Foundation/URLSessionConfiguration)). Setting this value to <doc://com.apple.documentation/documentation/Swift/false> ensures that the request will never run over cellular.

## See Also

[`waitsForConnectivity`](/documentation/Foundation/URLSessionConfiguration/waitsForConnectivity)

A Boolean value that indicates whether the session should wait for connectivity to become available, or fail immediately.



---

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)