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 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-14 17:00:34 -06:00
parent 636ebb56bd
commit cab68c01dd
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -57,5 +57,6 @@
</main>
<script src="/assets/common.js?v=7"></script>
<script src="/assets/static.js?v=1"></script>
<script src="https://polhunter.com/embed.js" data-slots="4" data-selector="main.wrap > .card" async></script>
</body>
</html>
+2 -2
View File
@@ -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 || {}); }