You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename __HostHttp- to __Host-Http- for improved compatibility
While a bit uglier, this makes it easier to deploy this to non-supporting browsers while not losing the characteristics that `__Host-` provides.
Tested in web-platform-tests/wpt#54226. Relevant Cookie Store API changes in whatwg/cookiestore#286.
Copy file name to clipboardExpand all lines: draft-ietf-httpbis-layered-cookies.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -679,10 +679,10 @@ This helps developers and server operators to know that the cookie was set using
679
679
a `Set-Cookie` header, and is limited in scope to HTTP requests.
680
680
681
681
682
-
#### The "__HostHttp-" prefix
682
+
#### The "__Host-Http-" prefix
683
683
684
684
If a cookie's name begins with a case-sensitive match for the string
685
-
`__HostHttp-`, then the cookie will have been set with a `Secure` attribute, an
685
+
`__Host-Http-`, then the cookie will have been set with a `Secure` attribute, an
686
686
`HttpOnly`attribute, a `Path` attribute with a value of `/`, and no `Domain` attribute.
687
687
688
688
This helps developers and server operators to know that the cookie was set using
@@ -1305,7 +1305,7 @@ boolean _httpOnlyAllowed_, boolean _allowNonHostOnlyCookieForPublicSuffix_, and
1305
1305
1306
1306
1. If _cookie_'s name, byte-lowercased, starts with `__http-` and _cookie_ is not Http-prefix compatible, then return null.
1307
1307
1308
-
1. If _cookie_'s name, byte-lowercased, starts with `__hosthttp-` and _cookie_ is not both Host-prefix compatible and Http-prefix compatible, then return null.
1308
+
1. If _cookie_'s name, byte-lowercased, starts with `__host-http-` and _cookie_ is not both Host-prefix compatible and Http-prefix compatible, then return null.
1309
1309
1310
1310
1. If _cookie_'s name is the empty byte sequence and one of the following is true:
1311
1311
@@ -1315,7 +1315,7 @@ boolean _httpOnlyAllowed_, boolean _allowNonHostOnlyCookieForPublicSuffix_, and
1315
1315
1316
1316
* _cookie_'s value, byte-lowercased, starts with `__http-`, or
1317
1317
1318
-
* _cookie_'s value, byte-lowercased, starts with `__hosthttp-`,
1318
+
* _cookie_'s value, byte-lowercased, starts with `__host-http-`,
0 commit comments