SkillPedia Skills Encyclopedia
中文 EN
今日更新 2026-11-18 UTC

今天还没有新提交

查看更新动态

技能 2026-10-10 19:04 UTC

tons-of-skills-marketplace

由提交人 jeremylongshore 提交,主要更新类型为:新增功能与能力扩展。提交说明:feat(marketplace-site): drop 'unsafe-inline' from script-src and refuse it back (#1646)。带来了新的能力与可配置项,扩展了使用场景。

jeremylongshore d57fcd5 jeremylongshore/tons-of-skills-marketplace

Commit提交信息原文

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]>