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

# secure

An NSString object indicating that the cookie should be transmitted only over secure channels.

## Declaration

```swift
static let secure: HTTPCookiePropertyKey
```

## Discussion

Discussion Providing any value for this key indicates that the cookie should remain secure.

## 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)
- [originURL](foundation/httpcookiepropertykey/originurl.md)
- [path](foundation/httpcookiepropertykey/path.md)
- [port](foundation/httpcookiepropertykey/port.md)
- [sameSitePolicy](foundation/httpcookiepropertykey/samesitepolicy.md)
- [value](foundation/httpcookiepropertykey/value.md)
- [version](foundation/httpcookiepropertykey/version.md)
