kinetex - v1.0.0-rc.1
    Preparing search index...

    Function isSameSite

    • 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.

      Parameters

      • a: string
      • b: string

      Returns boolean