Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
unreleased
==========

* Add `Partitioned` support

0.5.0 / 2022-04-11
==================

Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ the `Secure` attribute is set, otherwise it is not. By default, the `Secure` att
**note** be careful when setting this to `true`, as compliant clients will not send the cookie back to
the server in the future if the browser does not have an HTTPS connection.

##### partitioned
Specifies the `boolean` value for the [`Partitioned` `Set-Cookie` attribute][https://developer.chrome.com/docs/privacy-sandbox/third-party-cookie-phase-out/#partitioned-cookies].
When thruthy, the `Partitioned` attribute is set, ortherwise it is not. By default the `Partitioned` attribute is not set.
Partitioned cookies must be set with Secure and Path=/. In addition, it is recommended to use the __Host prefix when setting partitioned cookies to make them bound to the hostname and not the registrable domain.

**note**
This standard is still not fully adopted by all browsers https://developer.mozilla.org/en-US/docs/Web/Privacy/Partitioned_cookies

## Example

The following example uses this module in conjunction with the Node.js core HTTP server
Expand Down