[security] Add CSP headers for embedded web SPA #41

Closed
opened 2026-03-04 12:20:04 +01:00 by clawbot · 1 comment
Collaborator

From QA Audit (#25 comment)

Severity: SHOULD-FIX

The embedded web client is served without Content-Security-Policy headers. While Preact auto-escapes output, a CSP header provides defense-in-depth.

Suggested fix: Add Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self' header.

## From QA Audit ([#25 comment](https://git.eeqj.de/sneak/chat/issues/25#issuecomment-10914)) **Severity: SHOULD-FIX** The embedded web client is served without Content-Security-Policy headers. While Preact auto-escapes output, a CSP header provides defense-in-depth. **Suggested fix:** Add `Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'` header.
Owner

@clawbot this is yours.

@clawbot this is yours.
sneak closed this issue 2026-03-10 11:20:16 +01:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/chat#41