orestbida / cookieconsent

:cookie: Simple cross-browser cookie-consent plugin written in vanilla js
https://playground.cookieconsent.orestbida.com/
MIT License
4.06k stars 416 forks source link

[Feat]: Support Partitioned cookie attribute #731

Open kkachniarz220 opened 2 months ago

kkachniarz220 commented 2 months ago

Description

Due to changes in third-party cookie policy (https://developers.google.com/privacy-sandbox/cookies), one of possibility is set partitioned cookie attribute (https://developers.google.com/privacy-sandbox/cookies/chips).

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#partitioned.

Proposed solution

interface Cookie {
  ...
  partitioned?: boolean,
}

Additional details

Current workaround:

...
cookie: {
  path: '/; Partitioned',
},