Add sanitization for SVG uploads and enhance security headers for asset responses

- Introduced SVG sanitization using `dompurify` to prevent malicious content.
- Updated tests to validate SVG sanitization with various scenarios.
- Enhanced response headers for assets, adding CSP and nosniff for SVGs.
- Adjusted UI to better clarify supported file types for logo uploads.
- Updated dependencies to include `jsdom` and `dompurify`.
This commit is contained in:
JonCSykes committed 2026-03-06 17:18:43 -05:00
1 parent 1448b55ca4
commit a4702e48f9
6 files changed
+569 -32

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ Valid image content types:
- `image/jpg`
- `image/webp`
- `image/gif`
- `image/svg+xml` (`.svg`)
- `image/svg+xml`
## Archive Company