@kadanza/extension-sdk
    Preparing search index...

    Function resolveAllowedOrigin

    • Parses and validates a tenant URL into a postMessage-safe origin. Allows https always; http only for localhost / 127.0.0.1 / [::1].

      Parameters

      • tenantUrl: string | null

        Absolute URL from the tenantUrl search param.

      Returns string

      Origin string suitable for postMessage targetOrigin.

      When missing, unparsable, or disallowed scheme/host.