Summary
src/middleware.ts references CSP_ENFORCE env flag but there is no observable test for the strict CSP.
Affected area
src/middleware.ts, src/app/api/csp-report/route.ts
Steps to reproduce / impact
Without a strict CSP, XSS payloads (covered by #13, #22, #23) become viable. CSP is the second line of defence.
Expected behaviour
Publish a baseline CSP (default-src 'self'; img-src 'self' data: ipfs:; script-src 'self' 'nonce-…'), enforce in production, and report-only in non-prod.
Acceptance criteria
Summary
src/middleware.tsreferencesCSP_ENFORCEenv flag but there is no observable test for the strict CSP.Affected area
src/middleware.ts,src/app/api/csp-report/route.tsSteps to reproduce / impact
Without a strict CSP, XSS payloads (covered by #13, #22, #23) become viable. CSP is the second line of defence.
Expected behaviour
Publish a baseline CSP (default-src 'self'; img-src 'self' data: ipfs:; script-src 'self' 'nonce-…'), enforce in production, and report-only in non-prod.
Acceptance criteria