Fetch policy for baseURI document.domain is empty.
This commit is contained in:
parent
b14f8ef5d0
commit
bd7b621109
|
@ -80,7 +80,7 @@
|
|||
if (url.startsWith("blob:")) {
|
||||
url = location.origin;
|
||||
} else if (/^(?:javascript|about):/.test(url)) {
|
||||
url = document.readyState === "loading"
|
||||
url = document.readyState === "loading" || !document.domain
|
||||
? document.baseURI
|
||||
: `${window.isSecureContext ? "https" : "http"}://${document.domain}`;
|
||||
debug("Fetching policy for actual URL %s (was %s)", url, document.URL);
|
||||
|
|
Loading…
Reference in New Issue