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

Function sameOrigin

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

Source from the content-addressed store, hash-verified

4596 if (actualValue[actualValue.length - 2] === "=") {
4597 actualValue = actualValue.slice(0, -2);
4598 } else {
4599 actualValue = actualValue.slice(0, -1);
4600 }
4601 }
4602 if (compareBase64Mixed(actualValue, expectedValue)) {
4603 return true;
4604 }
4605 }
4606 return false;
4607 }
4608 var parseHashWithOptions = new RegExp("(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\\s|$)( +[!-~]*)?)?", "i");
4609 function parseMetadata(metadata) {

Callers 5

constructorMethod · 0.70
mainFetchFunction · 0.70
httpRedirectFetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected