MCPcopy Create free account
hub / github.com/angular/dev-infra / sameOrigin

Function sameOrigin

github-actions/saucelabs/set-saucelabs-env.js:4598–4606  ·  view source on GitHub ↗
(A, B)

Source from the content-addressed store, hash-verified

4596 continue;
4597 }
4598 return false;
4599 }
4600 }
4601 return true;
4602 }
4603 function tryUpgradeRequestToAPotentiallyTrustworthyURL(request) {
4604 }
4605 function sameOrigin(A, B) {
4606 if (A.origin === B.origin && A.origin === "null") {
4607 return true;
4608 }
4609 if (A.protocol === B.protocol && A.hostname === B.hostname && A.port === B.port) {

Callers 5

constructorMethod · 0.70
mainFetchFunction · 0.70
httpRedirectFetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected