origin

external val origin: String(source)

The origin read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.

MDN Reference