맥스그리드 API 레퍼런스
    Preparing search index...

    Function readHost

    • 판정에 쓸 호스트. iframe이면 최상위 문서의 호스트를 우선하고(읽을 수 없으면 ancestorOrigins의 맨 위, 그다음 document.referrer), 그것도 없으면 자기 호스트를 쓴다. location이 없는 환경(SSR·Node)은 null.

      Parameters

      • scope: typeof globalThis = globalThis

      Returns string | null