| ▲ | rwmj 3 hours ago | |||||||||||||
I think this says more about how the cookies security model is stupid. They should always have been scoped to the single, exact name they were set from and nothing else. Websites would have had to be designed a bit more thoughtfully. | ||||||||||||||
| ▲ | xp84 an hour ago | parent | next [-] | |||||||||||||
It seems like it would be easily resolvable with TXT records these days. Anyone could try, say, on www.google.com to set a cookie for all of google.com, and the browser can fetch TXT records on google.com to see what, if any subdomains, it wants to allow this privilege for. Google could return a list or a wildcard; co.uk wouldn't allow any. In a world without advertising, there's no reason why google.com couldn't also allow *.youtube.com to set cookies for it, but of course that would cause a tremendous privacy freakout. Though in practice they can and do just send every login/logout through a 302 redirect roundtrip to take care of the cookies on youtube.com. | ||||||||||||||
| ▲ | lxgr 2 hours ago | parent | prev [-] | |||||||||||||
It’s not nearly just cookies, and I think interpreting domain hierarchies as administrative structure generally does make sense. Maybe it could be opt-in or opt-out via some markers at the DNS level, though? The public suffix list having to exist at all is bizarre. | ||||||||||||||
| ||||||||||||||