origin

external val origin: String(source)

The origin property of a WorkerLocation object returns the worker's origin.

MDN Reference