Skip to main content

same_site

Function same_site 

Source
pub fn same_site(a: &str, b: &str) -> bool
Expand description

Do both URLs belong to the same site: the same registrable domain under the public suffix list (console.example.com and signin.example.com do; a.github.io and b.github.io don’t)? A host with no registrable domain (an IP address, localhost) matches only itself.