Browser & Web Performance · Senior · Question 55 of 75
What does the __Host- cookie name prefix guarantee?
Set-Cookie: __Host-session=abc; Secure; Path=/; HttpOnly; SameSite=Lax- ✓Correct answer: The cookie was set over HTTPS by this exact host, with
Path=/and noDomain, so subdomains can't set or override it - 2The cookie is shared with all subdomains
- 3The cookie is encrypted by the browser
Explanation
It defends against cookie tossing from a compromised or user-controlled subdomain.