MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / isAdcpDomain

Method isAdcpDomain

server/src/http.ts:834–837  ·  view source on GitHub ↗
(req: express.Request)

Source from the content-addressed store, hash-verified

832 // Helper to check if request is from adcontextprotocol.org (requires redirect to AAO for auth)
833 // Session cookies are scoped to agenticadvertising.org, so auth pages on AdCP must redirect
834 private isAdcpDomain(req: express.Request): boolean {
835 const hostname = req.hostname || '';
836 return HTTPServer.ADCP_HOSTNAMES.has(hostname);
837 }
838
839 // Validate that a URL points to an allowed AdCP domain (prevents open redirect)
840 private static isAllowedAdcpUrl(url: string): boolean {

Callers 5

setupMiddlewareMethod · 0.95
bridgeIfNeededMethod · 0.95
setupRoutesMethod · 0.95
serveDashboardPageMethod · 0.95
setupAuthRoutesMethod · 0.95

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected