/** * @file secure_csp_generator.ts * @description * SecureCSPGenerator: A hardened Content-Security-Policy (CSP) generator * that fetches HTML content, parses resource references, and builds a * strict CSP header. Core features include: * - HTTPS-only scheme enforcement (configurable) * - SSRF protection (rejects private IPv4/IPv6 by default) * - Streamed HTML download with timeout and max-body-size limits * - Inline