From 91b7ee7c7260d36d524f81bdf5acf0f22a41a9b8 Mon Sep 17 00:00:00 2001 From: dpdev69 <4314475+dpdev69@users.noreply.github.com> Date: Tue, 20 Oct 2026 07:32:00 +0000 Subject: [PATCH 1/2] Site: allow Cloudflare's injected check script, drop the unused font preload Cloudflare adds an inline Bot Fight Mode script to every page on the proxied domain, and the CSP blocked it. Chrome also flagged the 500 preload as unused. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LnkjoXP333uqMXUsNjoote --- site/_headers | 4 +++- site/index.html | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/site/_headers b/site/_headers index d9693e7..95d65e0 100644 --- a/site/_headers +++ b/site/_headers @@ -1,5 +1,7 @@ +# The pages run no scripts of their own. 'unsafe-inline' in script-src is for the +# scripts Cloudflare injects (Bot Fight Mode check, Web Analytics beacon). /* - Content-Security-Policy: default-src 'self'; img-src 'self' data:; style-src 'self'; font-src 'self'; script-src 'self' https://static.cloudflareinsights.com; connect-src 'self' https://cloudflareinsights.com; base-uri 'self'; form-action 'none'; frame-ancestors 'none' + Content-Security-Policy: default-src 'self'; img-src 'self' data:; style-src 'self'; font-src 'self'; script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com; connect-src 'self' https://cloudflareinsights.com; object-src 'none'; base-uri 'self'; form-action 'none'; frame-ancestors 'none' Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff X-Frame-Options: DENY diff --git a/site/index.html b/site/index.html index ef0721a..1c30c43 100644 --- a/site/index.html +++ b/site/index.html @@ -28,7 +28,6 @@ - From f016bb6b952fba2c1fd2cd65cc850eca71de2357 Mon Sep 17 00:00:00 2001 From: dpdev69 <4314475+dpdev69@users.noreply.github.com> Date: Tue, 20 Oct 2026 07:36:11 +0000 Subject: [PATCH 2/2] Site: keep the CSP as it was for now The script-src rule for Cloudflare's injected script is being decided for all hellobasalt.dev sites; it goes in a separate change. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01LnkjoXP333uqMXUsNjoote --- site/_headers | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/site/_headers b/site/_headers index 95d65e0..d9693e7 100644 --- a/site/_headers +++ b/site/_headers @@ -1,7 +1,5 @@ -# The pages run no scripts of their own. 'unsafe-inline' in script-src is for the -# scripts Cloudflare injects (Bot Fight Mode check, Web Analytics beacon). /* - Content-Security-Policy: default-src 'self'; img-src 'self' data:; style-src 'self'; font-src 'self'; script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com; connect-src 'self' https://cloudflareinsights.com; object-src 'none'; base-uri 'self'; form-action 'none'; frame-ancestors 'none' + Content-Security-Policy: default-src 'self'; img-src 'self' data:; style-src 'self'; font-src 'self'; script-src 'self' https://static.cloudflareinsights.com; connect-src 'self' https://cloudflareinsights.com; base-uri 'self'; form-action 'none'; frame-ancestors 'none' Strict-Transport-Security: max-age=31536000; includeSubDomains X-Content-Type-Options: nosniff X-Frame-Options: DENY