From 577ffaef1eebf280a437be1cf1b2ccb0e321d4a8 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Tue, 22 Apr 2025 10:32:32 -0600 Subject: [PATCH] Update next security policy --- web/next.config.mjs | 6 +++++- web/src/context/Posthog/BusterPosthogProvider.tsx | 7 +++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/web/next.config.mjs b/web/next.config.mjs index 8bebcc917..d11e09f77 100644 --- a/web/next.config.mjs +++ b/web/next.config.mjs @@ -45,7 +45,11 @@ const createCspHeader = (isEmbed = false) => { // Base URI "base-uri 'self'", // Manifest - "manifest-src 'self'" + "manifest-src 'self'", + // Worker sources + "worker-src 'self' blob: data:", + // Child sources + "child-src 'self' blob: data:" ].join('; '); }; diff --git a/web/src/context/Posthog/BusterPosthogProvider.tsx b/web/src/context/Posthog/BusterPosthogProvider.tsx index 63195b31d..4bc2d63bd 100644 --- a/web/src/context/Posthog/BusterPosthogProvider.tsx +++ b/web/src/context/Posthog/BusterPosthogProvider.tsx @@ -25,11 +25,10 @@ const options: Partial = { session_recording: { recordBody: true }, - loaded: (x) => { + loaded: () => { console.log( - '%c🎉 Posthog loaded! 🚀', - 'background: linear-gradient(to right, #ff6b6b, #4ecdc4); color: white; font-size: 20px; font-weight: bold; padding: 10px; border-radius: 5px;', - x + '%c🚀 Buster loaded! 🦖', + 'background: linear-gradient(to right, #a21caf, #8b1cb1, #6b21a8); color: white; font-size: 16px; font-weight: bold; padding: 10px; border-radius: 5px;' ); } };