There’s some new URL terminology to learn! You may have heard of the term “origin” before, but as of recently “site” is formally defined as well, thanks to @mikewest. Let’s walk through some examples.
-
Show this thread
-
Same “origin”: same scheme, host, and port
https://example.com/foo + https://example.com/bar
https://example.com/ + https://sub.example.com/1 reply 0 retweets 5 likesShow this thread -
Same “site”: same registrable domain
requires a lookup in https://publicsuffix.org/list/
https://foo.example.com/ + https://bar.example.com/
https://foo.github.io/ + https://bar.github.io/3 replies 1 retweet 11 likesShow this thread
Specs: - same origin: https://html.spec.whatwg.org/multipage/origin.html#same-origin … - same site: https://url.spec.whatwg.org/#host-same-site
9:14 AM - 25 Jun 2018
0 replies
2 retweets
14 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.