WorkerLocation: origin プロパティ

originWorkerLocation オブジェクトのプロパティで、このワーカーのオリジン (origin) を返します。

文字列です。

js
// On this page, returns the origin
const result = self.location.origin; // 'https://developer.mozilla.org:443' を返す

仕様書

Specification
HTML
# dom-workerlocation-origin

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
origin

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報