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

@property(readonly, copy) NSHTTPCookieStringPolicy sameSitePolicy;

Discussion

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

See Also

Securing Cookies

HTTPOnly

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

secure

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

NSHTTPCookieStringPolicy

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