Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
381
export
function
isProxyOrigin(url) {
382
return
urls.cdnProxyRegex.test(urlAsLocation(url).origin);
383
}
384
385
/**
386
* Returns whether the URL origin is localhost.
Callers
15
doesOriginDomainMatchIframeSrc
Function · 0.90
validateAllowedEmbeddingOrigins
Function · 0.90
testProxyOrigin
Function · 0.90
onDocumentFormSubmit_
Function · 0.90
rewriteAttributesForElement
Function · 0.90
resolveUrlAttr
Function · 0.90
resolveImageUrlAttr
Function · 0.90
detectNonAmpJs
Function · 0.90
getHighestAvailableDomain
Function · 0.90
checkOriginForSettingCookie
Function · 0.90
applyResponse
Function · 0.90
getViewerInterceptResponse
Function · 0.90
Calls
2
urlAsLocation
Function · 0.85
test
Method · 0.45
Tested by
no test coverage detected