If you are in the iframe context,. you could do const currentIframeHref = new URL(document.location.href); const urlOrigin = currentIframeHref.origin; ...
確定! 回上一頁