drogonframework/drogon

Adding cookie "Partitioned" flag

Open

#2,202 建立於 2024年11月4日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)C++ (1,014 fork)batch import
good first issue

倉庫指標

Star
 (10,462 star)
PR 合併指標
 (平均合併 5天 16小時) (30 天內合併 3 個 PR)

描述

Is your feature request related to a problem? Please describe.

Recently, browsers have added a new flag called Partitioned that allow cross-origin cookie setting on browsers where third party cookies are disabled (Safari, Firefox, future Chrome):

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

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

https://developer.mozilla.org/en-US/docs/Web/Privacy/Privacy_sandbox/Partitioned_cookies

Describe the solution you'd like

I'd love for the currently available Cookie class to support the new Partitioned flag.

Describe alternatives you've considered

It does not seem to be currently possible to set arbitrary strings as flags on Drogon cookies.

貢獻者指南