# Strict CSP and Trusted Types **Spec:** `tests/e2e/csp.spec.ts` · **Task:** T-quality-csp (Task 230) Every registered example renders under an **enforced** strict Content-Security-Policy with Trusted Types required. On 2026-10-25, Chromium and Pixel 7 reported **zero violations across all 150 registered examples**. The production site build also serves page-specific hash-based CSP in both enforcing and report-only headers. Texuli needs no `'unsafe-inline'`, no `'unsafe-eval'`, no nonces and no HTML string sinks. ```bash TEXULI_E2E_PORT= pnpm exec playwright test tests/e2e/csp.spec.ts ``` ## The policy ```text default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data: blob: ; font-src 'self'; media-src 'self' blob: ; connect-src 'self'; worker-src 'self'; frame-src 'none'; object-src 'none'; base-uri 'none'; form-action 'self'; require-trusted-types-for 'script'; trusted-types svelte-trusted-html ``` - **Scripts and styles come only from the app's own files.** `style-src` has no `'unsafe-inline'`, so `