-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
HacktoberfestWe think it's good for https://hacktoberfest.digitalocean.com/We think it's good for https://hacktoberfest.digitalocean.com/enhancementgood first issueGood for newcomersGood for newcomers
Milestone
Description
Is your feature request related to a problem?
I need to use partitioned cookies to set cookies in contexts where third-party cookies are otherwise restricted.
Describe the solution you'd like
A recent addition to the Set-Cookie header is the ability to mark cookies as partitioned (see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#partitioned, https://developer.mozilla.org/en-US/docs/Web/Privacy/Privacy_sandbox/Partitioned_cookies).
StreamResponse.set_cookie
should support setting partitioned cookies, e.g. using a partitioned=True
keyword argument.
Describe alternatives you've considered
I can create a 'Set-Cookie' header manually, but would have to figure out edge cases with encoding and escaping special characters myself. This would be inconvenient and probably error-prone.
Related component
Server
Additional context
No response
Code of Conduct
- I agree to follow the aio-libs Code of Conduct
Metadata
Metadata
Assignees
Labels
HacktoberfestWe think it's good for https://hacktoberfest.digitalocean.com/We think it's good for https://hacktoberfest.digitalocean.com/enhancementgood first issueGood for newcomersGood for newcomers