From 56ab41283bd9f8fe4660cbbd50ff2a3fa8d3db23 Mon Sep 17 00:00:00 2001 From: flamerged <34665379+flamerged@users.noreply.github.com> Date: Wed, 13 May 2026 00:19:05 +0200 Subject: [PATCH 1/2] fix: stabilize viewer navigation and timeline layout --- src/auth.ts | 2 +- src/viewer/index.html | 172 +++++++++++++++++++++++++++-------- test/viewer-security.test.ts | 1 + 3 files changed, 136 insertions(+), 39 deletions(-) diff --git a/src/auth.ts b/src/auth.ts index 95153bad5a..f7396117e4 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -24,7 +24,7 @@ export function buildViewerCsp(nonce: string): string { "script-src-attr 'none'", "style-src 'unsafe-inline'", "connect-src 'self' http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:* wss://localhost:* wss://127.0.0.1:*", - "img-src 'self'", + "img-src 'self' data:", "font-src 'self'", ].join("; "); } diff --git a/src/viewer/index.html b/src/viewer/index.html index 551d016c34..bdca1397b8 100644 --- a/src/viewer/index.html +++ b/src/viewer/index.html @@ -4,6 +4,7 @@