Skip to content

Conversation

chrisdavidmills
Copy link
Contributor

@chrisdavidmills chrisdavidmills commented Sep 1, 2025

Description

Chrome 140 adds support for the __Http- and __Host-Http- cookie prefixes: see https://chromestatus.com/feature/5170139586363392, and also see https://github.com/httpwg/http-extensions/blob/main/draft-ietf-httpbis-layered-cookies.md#the-__http--prefix for further info.

This PR documents the new prefixes.

Can you give me a technical review, @yoavweiss?

Motivation

Additional details

Related issues and pull requests

@chrisdavidmills chrisdavidmills requested review from a team as code owners September 1, 2025 09:18
@chrisdavidmills chrisdavidmills requested review from bsmth and removed request for a team September 1, 2025 09:18
@github-actions github-actions bot added Content:WebAPI Web API docs Content:HTTP HTTP docs labels Sep 1, 2025
@chrisdavidmills chrisdavidmills changed the title Document __Http- and __Host-Http- cookie prefixes Technical review: Document __Http- and __Host-Http- cookie prefixes Sep 1, 2025
@github-actions github-actions bot added the size/m [PR only] 51-500 LoC changed label Sep 1, 2025
Copy link
Contributor

github-actions bot commented Sep 1, 2025

Preview URLs

Flaws (4)

Note! 2 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/HTTP/Guides/Cookies
Title: Using HTTP cookies
Flaw count: 4

  • unknown:
    • Error opening /shared-assets/images/diagrams/http/cookies/cookie-basic-example.png: No such file or directory (os error 2)
    • No generic content config found
    • no blog root
    • no blog root
External URLs (2)

URL: /en-US/docs/Web/HTTP/Guides/Cookies
Title: Using HTTP cookies

(comment last updated: 2025-09-01 15:25:16)

Copy link
Contributor

@yoavweiss yoavweiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chrisdavidmills chrisdavidmills changed the title Technical review: Document __Http- and __Host-Http- cookie prefixes Editorial review: Document __Http- and __Host-Http- cookie prefixes Sep 1, 2025
@@ -205,12 +210,11 @@ Set-Cookie: sessionId=e8bb43229de9; Domain=foo.example.com

### Cookie prefixes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually missed that this section is under "Examples", so there's some small duplication, but it's also okay in this state, IMO.

Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Chris! Maybe you want to de-dupe some of the information in the Set-Cookie page for cookie prefixes, but I think it's good either way! Reiterating before the example is also fine 👍🏻

@chrisdavidmills chrisdavidmills merged commit ac513ee into mdn:main Sep 1, 2025
8 checks passed
@chrisdavidmills chrisdavidmills deleted the Http-and-HostHttp-cookie-prefixes branch September 1, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:HTTP HTTP docs Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants