Skills 2026-10-10 19:04 UTC
tons-of-skills-marketplace
Committed by jeremylongshore. Update Category: New Features & Capability Expansion. Commit details: feat(marketplace-site): drop 'unsafe-inline' from script-src and refuse it back (#1646). This update introduces new capabilities and expands supported use cases.
CommitRaw commit message
feat(marketplace-site): drop 'unsafe-inline' from script-src and refuse it back (#1646) Bead claude-i076, final step. With the built site shipping zero executable inline scripts and zero inline handlers (empty inventory, #1645), script-src no longer needs 'unsafe-inline'. Removing it means an injected <script> or on*= attribute can no longer execute: the CSP now blocks the main reflected/stored XSS payload class instead of only logging the policy. - security-policy.mjs: 'unsafe-inline' removed from script-src and its justification deleted. validateSecurityPolicy now throws if script-src or default-src carries 'unsafe-inline', even with a justification, so re-adding it fails at module load (preview, dev, and the validate:security-headers gate). style-src keeps its justified exception. - ops/tonsofskills-security-headers.caddy regenerated from the module (the tracked fragment must stay an exact projection). - security-policy.test.mjs: reviewed CSP updated; new planted-weakening and source-mutation tests prove 'unsafe-inline' in script-src is refused; the broad-scheme mutation re-anchored. - security-headers.spec.ts: the zero-violation run now also covers /compare/, /collections/, /cowork/, /community/ and a skill page, the pages whose scripts moved. Verified: validate:security-headers 20/20 and fragment current; strict CSP Playwright (security-headers, delegation, page-scripts, site-chrome specs) 60 passed / 2 skipped on chromium desktop + mobile; real-network crawl of 15 pages with live gtag, Umami, GetTerms and fonts under the new header: 0 CSP violations, 0 page errors. Deploy order: the site build from #1645 must be live before the Caddy fragment is installed on the VPS (marketplace/ops/install-security-headers.sh). - Jeremy Longshore intentsolutions.io Co-authored-by: Jeremy Longshore <[email protected]>