From 6c0f07b98eeddab2785947a3cf7f1f07b49e104f Mon Sep 17 00:00:00 2001 From: aadilr Date: Sat, 1 Aug 2026 20:29:48 +0000 Subject: [PATCH] fix(media): allow direct inline playback Signed-off-by: aadilr --- crates/buzz-relay/src/api/media.rs | 52 +++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/crates/buzz-relay/src/api/media.rs b/crates/buzz-relay/src/api/media.rs index fa0401bc26..0c28277e38 100644 --- a/crates/buzz-relay/src/api/media.rs +++ b/crates/buzz-relay/src/api/media.rs @@ -586,6 +586,22 @@ fn validate_media_path(sha256_ext: &str) -> Result<(), MediaError> { /// additional range requests. const MAX_RANGE_CHUNK: u64 = 16 * 1024 * 1024; +/// CSP for a blob response, kept least-privilege while allowing browser-native +/// viewers to load the response as their generated `` or `