Unverified Commit 10e0798f authored by Joseph's avatar Joseph Committed by GitHub

docs: cookies.set encode option is not supported (#82154)

Encode overriding is not supported by the upstream library.
parent f0a05679
...@@ -46,7 +46,7 @@ The following methods are available: ...@@ -46,7 +46,7 @@ The following methods are available:
When setting a cookie, the following properties from the `options` object are supported: When setting a cookie, the following properties from the `options` object are supported:
| Option | Type | Description | | Option | Type | Description |
| ----------------- | -------------------------------------- | ---------------------------------------------------------------------------------- | | ------------- | -------------------------------------- | ---------------------------------------------------------------------------------- |
| `name` | String | Specifies the name of the cookie. | | `name` | String | Specifies the name of the cookie. |
| `value` | String | Specifies the value to be stored in the cookie. | | `value` | String | Specifies the value to be stored in the cookie. |
| `expires` | Date | Defines the exact date when the cookie will expire. | | `expires` | Date | Defines the exact date when the cookie will expire. |
...@@ -57,7 +57,6 @@ When setting a cookie, the following properties from the `options` object are su ...@@ -57,7 +57,6 @@ When setting a cookie, the following properties from the `options` object are su
| `httpOnly` | Boolean | Restricts the cookie to HTTP requests, preventing client-side access. | | `httpOnly` | Boolean | Restricts the cookie to HTTP requests, preventing client-side access. |
| `sameSite` | Boolean, `'lax'`, `'strict'`, `'none'` | Controls the cookie's cross-site request behavior. | | `sameSite` | Boolean, `'lax'`, `'strict'`, `'none'` | Controls the cookie's cross-site request behavior. |
| `priority` | String (`"low"`, `"medium"`, `"high"`) | Specifies the cookie's priority | | `priority` | String (`"low"`, `"medium"`, `"high"`) | Specifies the cookie's priority |
| `encode('value')` | Function | Specifies a function that will be used to encode a cookie's value. |
| `partitioned` | Boolean | Indicates whether the cookie is [partitioned](https://github.com/privacycg/CHIPS). | | `partitioned` | Boolean | Indicates whether the cookie is [partitioned](https://github.com/privacycg/CHIPS). |
The only option with a default value is `path`. The only option with a default value is `path`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment