diff --git a/docs/api/commands/getallcookies.mdx b/docs/api/commands/getallcookies.mdx index 81d08e7c9d..d918e2835a 100644 --- a/docs/api/commands/getallcookies.mdx +++ b/docs/api/commands/getallcookies.mdx @@ -38,6 +38,7 @@ the following properties: - `domain`: _(String)_ - `expiry`: _(Number)_ _(if specified)_ +- `hostOnly`: _(Boolean)_ _(if specified)_ - `httpOnly`: _(Boolean)_ - `name`: _(String)_ - `path`: _(String)_ diff --git a/docs/api/commands/getcookie.mdx b/docs/api/commands/getcookie.mdx index a86ca8b13e..cb41e9c136 100644 --- a/docs/api/commands/getcookie.mdx +++ b/docs/api/commands/getcookie.mdx @@ -41,6 +41,7 @@ Pass in an options object to change the default behavior of `cy.getCookie()`. - `domain` - `expiry` _(if specified)_ +- `hostOnly` _(if specified)_ - `httpOnly` - `name` - `path` diff --git a/docs/api/commands/getcookies.mdx b/docs/api/commands/getcookies.mdx index 2097b215dc..6db395e2be 100644 --- a/docs/api/commands/getcookies.mdx +++ b/docs/api/commands/getcookies.mdx @@ -38,6 +38,7 @@ following properties: - `domain`: _(String)_ - `expiry`: _(Number)_ _(if specified)_ +- `hostOnly`: _(Boolean)_ _(if specified)_ - `httpOnly`: _(Boolean)_ - `name`: _(String)_ - `path`: _(String)_ diff --git a/docs/api/commands/setcookie.mdx b/docs/api/commands/setcookie.mdx index bfc1c74201..43bca9eafa 100644 --- a/docs/api/commands/setcookie.mdx +++ b/docs/api/commands/setcookie.mdx @@ -38,6 +38,7 @@ Pass in an options object to change the default behavior of `cy.setCookie()`. | `log` | `true` | Displays the command in the [Command log](/guides/core-concepts/cypress-app#Command-Log) | | `domain` | Hostname of the current URL | The domain the cookie is visible to | | `expiry` | 20 years into the future | When the cookie expires, specified in seconds since [Unix Epoch](https://en.wikipedia.org/wiki/Unix_time). | +| `hostOnly` | `false` | Whether the cookie is a host-only cookie, (i.e. the request's host must exactly match the domain of the cookie) | | `httpOnly` | `false` | Whether the cookie is an HTTP only cookie | | `path` | `/` | The cookie path | | `secure` | `false` | Whether the cookie is a secure cookie | @@ -50,6 +51,7 @@ Pass in an options object to change the default behavior of `cy.setCookie()`. - `domain` - `expiry` _(if specified)_ +- `hostOnly` _(if specified)_ - `httpOnly` - `name` - `path` @@ -123,6 +125,7 @@ following: | Version | Changes | | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| [12.6.0](/guides/references/changelog#12-6-0) | Support `hostOnly` option for a given domain. | | [5.0.0](/guides/references/changelog#5-0-0) | Removed `experimentalGetCookiesSameSite` and made `sameSite` property always available. | | [4.3.0](/guides/references/changelog#4-3-0) | Added `sameSite` property when the [experimentalGetCookiesSameSite](/guides/references/configuration#Experiments) configuration value is `true`. | | [0.16.0](/guides/references/changelog#0-16-0) | `cy.setCookie()` command added |