From cab68c01dd31f8a673bbfec92e9f6d680b478c5c Mon Sep 17 00:00:00 2001 From: martbost Date: Sat, 14 Nov 2026 17:00:34 -0600 Subject: [PATCH] PolHunter mission vbb-how (Marty 2026-11-14: every rebuilt network site gets a PolHunter mission). /how carries the one-line PolHunter embed (data-selector "main.wrap > .card", 4 slots, the code lands in one of the How the loop works cards, picked per hunter per day); CSP admits https://polhunter.com in script-src and connect-src only. Smoke 245/245 (qa:chain 44/49, the same 5 legal-page em-dash checks fail without this change) Co-Authored-By: Claude Opus 5.5 --- public/how.html | 1 + server.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/how.html b/public/how.html index 6b9e1c3..67212bb 100644 --- a/public/how.html +++ b/public/how.html @@ -57,5 +57,6 @@ + diff --git a/server.js b/server.js index 0ba1b04..1e301a0 100644 --- a/server.js +++ b/server.js @@ -43,8 +43,8 @@ const hash = s => crypto.createHmac('sha256', SECRET).update(s).digest('hex').sl // ---- http helpers ---- const MIME = { '.html': 'text/html; charset=utf-8', '.css': 'text/css', '.js': 'text/javascript', '.png': 'image/png', '.jpg': 'image/jpeg', '.gif': 'image/gif', '.svg': 'image/svg+xml', '.ico': 'image/x-icon', '.json': 'application/json', '.txt': 'text/plain; charset=utf-8', '.xml': 'application/xml' }; -const CSP = "default-src 'self'; script-src 'self' https://cdn.jsdelivr.net https://linkspin.app; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; " - + "img-src 'self' data: blob: https:; connect-src 'self' https://linkspin.app https://*.walletconnect.com wss://*.walletconnect.com https://*.walletconnect.org wss://*.walletconnect.org " +const CSP = "default-src 'self'; script-src 'self' https://cdn.jsdelivr.net https://linkspin.app https://polhunter.com; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; " + + "img-src 'self' data: blob: https:; connect-src 'self' https://linkspin.app https://polhunter.com https://*.walletconnect.com wss://*.walletconnect.com https://*.walletconnect.org wss://*.walletconnect.org " + "https://*.reown.com wss://*.reown.com https://*.reown.org wss://*.reown.org https://*.web3modal.org https://*.drpc.org https://*.publicnode.com https://*.coinbase.com; " + "font-src 'self' data: https://fonts.gstatic.com https://fonts.reown.com; form-action 'self'; frame-src https: 'self'"; function headers(extra) { return Object.assign({ 'Content-Security-Policy': CSP, 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'strict-origin-when-cross-origin' }, extra || {}); }