Re:You've Read Your Last Free Article, Such Is the Nature of...
by kazinator on Saturday June 15, 2024 @08:39PM
(#40693779)
That kind of bug happens under the "everything is a string" software paradigm. Abstractions that have more than one string representation inadvertently end up treated as different.
[ Parent
| on HN ]
Re:You've Read Your Last Free Article, Such Is the Nature of...
by darby_nine on Saturday June 15, 2024 @10:17PM
(#40694222)
They are semantically different—one is a relative domain name, the other is distinct. I'm not sure how this impacts localstorage or cookies but it might.
Re:You've Read Your Last Free Article, Such Is the Nature of...
by OptionOfT on Sunday June 16, 2024 @12:21AM
(#40694662)
Localstorage and cookies are stored by domain. If the relative domain is kept relative then it will never be equal to the absolute domain.
Or
let map = HashMap::from_iter([
"www.domain.com.": Cookiebag::new(),
"www.domain.com": Cookiebag::new(),
]);