(req: express.Request)
| 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 { |
no test coverage detected