Instance Property

sameSitePolicy

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

Declaration

var sameSitePolicy: HTTPCookieStringPolicy? { get }

Discussion

Along with the policy values defined by HTTPCookieStringPolicy, this property may also be nil. In this case, cross-site requests include the cookie.

See Also

Securing Cookies

var isHTTPOnly: Bool

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

var isSecure: Bool

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

struct HTTPCookieStringPolicy

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