Check if two URLs have the same site (registrable domain).
⚠️ Warning: Uses a heuristic based on TLD labels. This may produce incorrect
results for some multi-part TLDs not in the internal list (e.g., .com.mx, .org.br).
For production cookie security, consider using a Public Suffix List library.
Check if two URLs have the same site (registrable domain).
⚠️ Warning: Uses a heuristic based on TLD labels. This may produce incorrect results for some multi-part TLDs not in the internal list (e.g., .com.mx, .org.br). For production cookie security, consider using a Public Suffix List library.