From 70078eab1052fe101d9ab4b8e25981d27c829a05 Mon Sep 17 00:00:00 2001 From: Pedro Juarez Date: Thu, 20 Jun 2024 17:58:58 -0700 Subject: [PATCH] Fix browser UI animation (#19966) Browse UI is not showing the animation because the default content-security-policy do not trust the file https://unpkg.com/detect-gpu@5.0.38/dist/benchmarks/d-apple.json the GPU library needs to identify if the web browser can play it. --- internal/config/browser/browser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/browser/browser.go b/internal/config/browser/browser.go index 0daf91a4e..f5ad11d20 100644 --- a/internal/config/browser/browser.go +++ b/internal/config/browser/browser.go @@ -51,7 +51,7 @@ var ( DefaultKVS = config.KVS{ config.KV{ Key: browserCSPPolicy, - Value: "default-src 'self' 'unsafe-eval' 'unsafe-inline';", + Value: "default-src 'self' 'unsafe-eval' 'unsafe-inline'; script-src 'self' https://unpkg.com; connect-src 'self' https://unpkg.com;", }, config.KV{ Key: browserHSTSSeconds,