Instance Property

isSecure

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

Declaration

var isSecure: Bool { get }

Discussion

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

See Also

Securing Cookies

var isHTTPOnly: Bool

A Boolean value that indicates whether the cookie should only be sent to HTTP servers.

var sameSitePolicy: HTTPCookieStringPolicy?

A Boolean value that indicates whether to restrict the cookie to requests sent back to the same site that created it.

struct HTTPCookieStringPolicy

Values that indicate whether to restrict the cookie to requests sent back to the same site that created it.