MCPcopy
hub / github.com/ampproject/amphtml / isProxyOrigin

Function isProxyOrigin

src/url.js:381–383  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

379 * @return {boolean}
380 */
381export function isProxyOrigin(url) {
382 return urls.cdnProxyRegex.test(urlAsLocation(url).origin);
383}
384
385/**
386 * Returns whether the URL origin is localhost.

Callers 15

testProxyOriginFunction · 0.90
onDocumentFormSubmit_Function · 0.90
resolveUrlAttrFunction · 0.90
resolveImageUrlAttrFunction · 0.90
detectNonAmpJsFunction · 0.90
applyResponseFunction · 0.90

Calls 2

urlAsLocationFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected