From 16e11cae3bc8ccb889e349fe62aebf4283775a82 Mon Sep 17 00:00:00 2001 From: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> Date: Fri, 30 Oct 2026 22:09:48 -0400 Subject: [PATCH] fix: allow img.shields.io in CSP connect-src for navbar stats Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> --- changelog.d/fixed-532-csp-connect-src-shields.md | 4 ++++ next.config.ts | 7 ++++--- src/__tests__/next-config-headers.test.ts | 4 ++++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 changelog.d/fixed-532-csp-connect-src-shields.md diff --git a/changelog.d/fixed-532-csp-connect-src-shields.md b/changelog.d/fixed-532-csp-connect-src-shields.md new file mode 100644 index 00000000..cb910bdf --- /dev/null +++ b/changelog.d/fixed-532-csp-connect-src-shields.md @@ -0,0 +1,4 @@ +- The navbar GitHub stats (stars, forks, watchers) now load in production: + `connect-src` allows `https://img.shields.io` (and the production docs host + used for `shared.json` on preview deploys), and the header test pins both + (hivecommons/docs#532). diff --git a/next.config.ts b/next.config.ts index 72cc7e33..72486516 100644 --- a/next.config.ts +++ b/next.config.ts @@ -33,8 +33,9 @@ const nextConfig: NextConfig = { //