3 ms·
Subdomains usually get all the cookies from the main domain (or at least they used to, didn't follow up on that issue for some years).
by mschuster91 4y ago
Subdomains usually get all the cookies from the main domain (or at least they used to, didn't follow up on that issue for some years).
- cuttysnark 4y agoIt's the opposite. Set-Cookie takes the optional Domain attribute and "If omitted, this attribute defaults to the host of the current document URL, not including subdomains." However, perhaps you're remembering "Multiple host/domain values are not allowed, but if a domain is specified, then subdomains are always included." [0] [0] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#domaindomain-value https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Se...
- deleted 4y ago[deleted]