MCPcopy
hub / github.com/di-sukharev/opencommit / sameOrigin

Function sameOrigin

out/cli.cjs:50838–50846  ·  view source on GitHub ↗
(A5, B3)

Source from the content-addressed store, hash-verified

50836 }
50837 return false;
50838 }
50839 }
50840 return true;
50841 }
50842 function tryUpgradeRequestToAPotentiallyTrustworthyURL(request3) {
50843 }
50844 function sameOrigin(A5, B3) {
50845 if (A5.origin === B3.origin && A5.origin === "null") {
50846 return true;
50847 }
50848 if (A5.protocol === B3.protocol && A5.hostname === B3.hostname && A5.port === B3.port) {
50849 return true;

Callers 5

constructorMethod · 0.85
mainFetchFunction · 0.85
httpRedirectFetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…