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

Function corsCheck

github-actions/browserstack/set-browserstack-env.js:4324–4326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4322 function responseLocationURL(response, requestFragment) {
4323 if (!redirectStatusSet.has(response.status)) {
4324 return null;
4325 }
4326 let location = response.headersList.get("location", true);
4327 if (location !== null && isValidHeaderValue(location)) {
4328 if (!isValidEncodedURL(location)) {
4329 location = normalizeBinaryStringToUtf8(location);

Callers 1

httpFetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected