Cookie Prefixes - Chrome Platform Status
https://www.chromestatus.com/feature/495218839257088009.11.2020 · This feature adds a set of restrictions upon the names which may be used for cookies with specific properties. These restrictions enable user agents to smuggle cookie state to the server within the confines of the existing "Cookie" request header syntax, and limits the ways in which cookies may be abused. In a nutshell: `__Secure-*` cookies have to have the `Secure` …
Securing cookies with cookie prefixes - Sjoerd Langkemper
www.sjoerdlangkemper.nl › 2017/02/09 › cookie-prefixesFeb 09, 2017 · The __Host-prefix does the same as the __Secure-prefix and more. A __Host--prefixed cookie is only accessible by the same domain it is set on. This means that a subdomain can no longer overwrite the cookie value. Implementation. To use cookie prefixes, simply rename the cookies and include the prefix in front. If the cookie was previously named Bastogne, rename it to __Host-Bastogne. If the cookie is set by the framework, look up how to rename the session cookie of that framework.
Set-Cookie - HTTP | MDN
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie__Secure-prefix: Cookies with names starting with __Secure-(dash is part of the prefix) must be set with the secure flag from a secure page (HTTPS). __Host- prefix : Cookies with names starting with __Host- must be set with the secure flag, must be from a secure page (HTTPS), must not have a domain specified (and therefore, are not sent to subdomains), and the path must be / .