---
title: commentURL
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/httpcookiepropertykey/commenturl
---

# commentURL

An NSURL object or NSString object containing the comment URL for the cookie.

## Declaration

```swift
static let commentURL: HTTPCookiePropertyKey
```

## Discussion

Discussion Only valid for Version 1 cookies or later. This cookie attribute is optional.

## See Also

### Cookie property keys

- [comment](foundation/httpcookiepropertykey/comment.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)
- [originURL](foundation/httpcookiepropertykey/originurl.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)
