---
title: originURL
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/httpcookiepropertykey/originurl
---

# originURL

An NSURL or NSString object containing the URL that set this cookie.

## Declaration

```swift
static let originURL: HTTPCookiePropertyKey
```

## Discussion

Discussion If you do not provide a value for NSHTTPCookieOriginURL, you must provide a value for NSHTTPCookieDomain.

## See Also

### Cookie property keys

- [comment](foundation/httpcookiepropertykey/comment.md)
- [commentURL](foundation/httpcookiepropertykey/commenturl.md)
- [discard](foundation/httpcookiepropertykey/discard.md)
- [domain](foundation/httpcookiepropertykey/domain.md)
- [expires](foundation/httpcookiepropertykey/expires.md)
- [maximumAge](foundation/httpcookiepropertykey/maximumage.md)
- [name](foundation/httpcookiepropertykey/name.md)
- [path](foundation/httpcookiepropertykey/path.md)
- [port](foundation/httpcookiepropertykey/port.md)
- [sameSitePolicy](foundation/httpcookiepropertykey/samesitepolicy.md)
- [secure](foundation/httpcookiepropertykey/secure.md)
- [value](foundation/httpcookiepropertykey/value.md)
- [version](foundation/httpcookiepropertykey/version.md)
