From 2366c3598177ac795f0b0b40685d207d02144aa4 Mon Sep 17 00:00:00 2001 From: Maris Popens Date: Fri, 20 Nov 2026 22:23:17 +0200 Subject: [PATCH 1/2] fix: call the stats Worker on its own hostname --- templates/circuit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/circuit.html b/templates/circuit.html index ac18bc1..55ed989 100644 --- a/templates/circuit.html +++ b/templates/circuit.html @@ -446,7 +446,7 @@

Help

// ── HIDDEN VISIT COUNTER (anonymous, no identity crosses the wire) ── // Reports once per device, on first reaching S/F. Collection-only, nothing // displayed. Design: f1walk-stats-worker in drumandbytes/cloudflare-workers. -const STATS_API = 'https://f1walk-stats-worker.maris-0ec.workers.dev'; +const STATS_API = 'https://f1walk-stats.drumandbytes.dev'; const STATS_TURNSTILE_SITEKEY = '0x4AAAAAAEohbng14ahuLaIX'; let turnstileWidgetId = null; let turnstilePending = null; From 29e56a7f80507f8083d6e214f553f3d8f2085c8f Mon Sep 17 00:00:00 2001 From: Maris Popens Date: Fri, 20 Nov 2026 22:23:36 +0200 Subject: [PATCH 2/2] fix: allow the stats Worker's own hostname in the CSP --- _headers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_headers b/_headers index 12050b0..606e1ed 100644 --- a/_headers +++ b/_headers @@ -5,7 +5,7 @@ X-Content-Type-Options: nosniff Referrer-Policy: strict-origin-when-cross-origin Permissions-Policy: geolocation=(self), camera=(), microphone=(), payment=() - Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com https://challenges.cloudflare.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://*.tile.openstreetmap.org; connect-src 'self' https://*.tile.openstreetmap.org https://cloudflareinsights.com https://challenges.cloudflare.com https://f1walk-stats-worker.maris-0ec.workers.dev; frame-src https://challenges.cloudflare.com; font-src 'self'; manifest-src 'self'; worker-src 'self' + Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com https://challenges.cloudflare.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://*.tile.openstreetmap.org; connect-src 'self' https://*.tile.openstreetmap.org https://cloudflareinsights.com https://challenges.cloudflare.com https://f1walk-stats.drumandbytes.dev; frame-src https://challenges.cloudflare.com; font-src 'self'; manifest-src 'self'; worker-src 'self' Cache-Control: no-cache, no-store, must-revalidate # Images opt back out. Pages joins same-named headers from every matching