Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
10e0798f
Unverified
Commit
10e0798f
authored
Jul 29, 2025
by
Joseph
Committed by
GitHub
Jul 29, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: cookies.set encode option is not supported (#82154)
Encode overriding is not supported by the upstream library.
parent
f0a05679
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
cookies.mdx
docs/01-app/03-api-reference/04-functions/cookies.mdx
+13
-14
No files found.
docs/01-app/03-api-reference/04-functions/cookies.mdx
View file @
10e0798f
...
@@ -45,20 +45,19 @@ The following methods are available:
...
@@ -45,20 +45,19 @@ 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
.
|
|
`maxAge`
|
Number
|
Sets
the
cookie
’
s
lifespan
in
seconds
.
|
|
`maxAge`
|
Number
|
Sets
the
cookie
’
s
lifespan
in
seconds
.
|
|
`domain`
|
String
|
Specifies
the
domain
where
the
cookie
is
available
.
|
|
`domain`
|
String
|
Specifies
the
domain
where
the
cookie
is
available
.
|
|
`path`
|
String
,
default
:
`'/'`
|
Limits
the
cookie
's scope to a specific path within the domain. |
|
`path`
|
String
,
default
:
`'/'`
|
Limits
the
cookie
's scope to a specific path within the domain. |
| `secure` | Boolean | Ensures the cookie is sent only over HTTPS connections for added security. |
| `secure` | Boolean | Ensures the cookie is sent only over HTTPS connections for added security. |
| `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`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment