fix(security): harden sanitize, flatten, redaction, signature validation, CSP, proxies and CI

This commit is contained in:
alam00000 committed 2026-10-19 14:45:00 +05:30
1 parent b0a186839a
commit edd959f345
62 files changed
+4813 -926

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import DOMPurify from 'dompurify';
const ALLOWED_TAGS = ['br', 'strong', 'em'];
export function sanitizeTranslationHtml(html: string): string {
return DOMPurify.sanitize(html, { ALLOWED_TAGS, ALLOWED_ATTR: [] });
}