MCPcopy Create free account
hub / github.com/nodejs/node / sameOrigin

Function sameOrigin

deps/undici/undici.js:5590–5598  ·  view source on GitHub ↗
(A, B)

Source from the content-addressed store, hash-verified

5588 }
5589 __name(tryUpgradeRequestToAPotentiallyTrustworthyURL, "tryUpgradeRequestToAPotentiallyTrustworthyURL");
5590 function sameOrigin(A, B) {
5591 if (A.origin === B.origin && A.origin === "null") {
5592 return true;
5593 }
5594 if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {
5595 return true;
5596 }
5597 return false;
5598 }
5599 __name(sameOrigin, "sameOrigin");
5600 function isAborted(fetchParams) {
5601 return fetchParams.controller.state === "aborted";

Callers 5

constructorMethod · 0.70
mainFetchFunction · 0.70
httpRedirectFetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected