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