---
title: isSecure
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/httpcookie/issecure
---

# isSecure

A Boolean value that indicates whether the cookie may only be sent over secure channels.

## Declaration

```swift
var isSecure: Bool { get }
```

## Discussion

Discussion This value is true if this cookie should only be sent over secure channels, otherwise false.

## See Also

### Securing cookies

- [isHTTPOnly](foundation/httpcookie/ishttponly.md)
- [sameSitePolicy](foundation/httpcookie/samesitepolicy.md)
- [HTTPCookieStringPolicy](foundation/httpcookiestringpolicy.md)
