diff --git a/public/app.js b/public/app.js index cd65383..f441acc 100644 --- a/public/app.js +++ b/public/app.js @@ -705,7 +705,6 @@ function renderStatusPanel(data, panel) {
Last Poll (${lp.totalMs}ms total, ${pollAge}s ago)
`; const maxTaskMs = lp.tasks.reduce((max, t) => Math.max(max, t.ms), 1); - console.log('[Status] task timings:', JSON.stringify(lp.tasks), 'maxTaskMs:', maxTaskMs); for (const t of lp.tasks) { const barWidth = Math.max(2, (t.ms / maxTaskMs) * 100); html += ` diff --git a/server/app.js b/server/app.js index ad98959..4ee54a3 100644 --- a/server/app.js +++ b/server/app.js @@ -42,6 +42,7 @@ function createApp({ skipRateLimits = false } = {}) { defaultSrc: ["'self'"], scriptSrc: ["'self'", (req, res) => `'nonce-${res.locals.cspNonce}'`], styleSrc: ["'self'", (req, res) => `'nonce-${res.locals.cspNonce}'`], + styleSrcAttr: ["'unsafe-inline'"], imgSrc: ["'self'", 'data:', 'blob:'], fontSrc: ["'self'", 'data:'], connectSrc: ["'self'"],