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

Function getProxySourceOrigin

src/service/cid-impl.js:506–509  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

504 * factored into its own package.
505 */
506export function getProxySourceOrigin(url) {
507 userAssert(isProxyOrigin(url), 'Expected proxy origin %s', url.origin);
508 return getSourceOrigin(url);
509}
510
511/**
512 * Returns the base cid for the current user(). This string must not

Callers 2

test-cid.jsFile · 0.90
scopeBaseCid_Method · 0.85

Calls 3

userAssertFunction · 0.90
isProxyOriginFunction · 0.90
getSourceOriginFunction · 0.90

Tested by

no test coverage detected