---
title: allowsCellularAccess
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsmutableurlrequest/allowscellularaccess
---

# allowsCellularAccess

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

## Declaration

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

## Discussion

Discussion Setting this property to true (the default) makes the request eligible to run over cellular, subject to other considerations (including, but not limited to, the allowsCellularAccess property of the URLSessionConfiguration). Setting this value to false ensures that the request will never run over cellular.

## See Also

### Related Documentation

- [waitsForConnectivity](foundation/urlsessionconfiguration/waitsforconnectivity.md)

### Controlling request behavior

- [timeoutInterval](foundation/nsmutableurlrequest/timeoutinterval.md)
- [httpShouldHandleCookies](foundation/nsmutableurlrequest/httpshouldhandlecookies.md)
- [httpShouldUsePipelining](foundation/nsmutableurlrequest/httpshouldusepipelining.md)
