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

# httpShouldHandleCookies

A Boolean value that indicates whether the request should use the default cookie handling for the request.

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

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the request should use the default cookie handling for the request, <doc://com.apple.documentation/documentation/Swift/false> otherwise. The default is <doc://com.apple.documentation/documentation/Swift/true>.

If your app sets the `Cookie` header on an [`NSMutableURLRequest`](/documentation/Foundation/NSMutableURLRequest) object, then this method has no effect, and the cookie data you set in the header overrides all cookies from the cookie store.

### Special considerations

In OS X v10.2 with Safari 1.0 the value set by this method is not respected by the framework.

## See Also

[`HTTPShouldHandleCookies`](/documentation/Foundation/NSURLRequest/httpShouldHandleCookies)

A Boolean value that indicates whether the default cookie handling will be used for this request.



---

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)