diff --git a/mcp-worker/src/auth.ts b/mcp-worker/src/auth.ts index 30b99df7..3d3a5cb8 100644 --- a/mcp-worker/src/auth.ts +++ b/mcp-worker/src/auth.ts @@ -105,7 +105,14 @@ export async function authorize( const clientLogo = client.logoUri || '' // No default logo const requestedScopes = (c.env.AUTH0_SCOPE || '').split(' ') - // Render the consent screen with CSRF protection + // Render the consent screen with CSRF protection. + // + // The consent page reflects client-supplied metadata (client_name, logo_uri) + // from Dynamic Client Registration. It contains no first-party JavaScript, so + // we lock it down with a strict CSP: `script-src 'none'` blocks every script + // execution path (inline