[mirotalksfu] - #168 fix target

هذا الالتزام موجود في:
Miroslav Pejic
2024-10-14 18:19:26 +02:00
الأصل 35946c2a57
التزام 9cfe450f64
5 ملفات معدلة مع 8 إضافات و6 حذوفات

عرض الملف

@@ -14,7 +14,7 @@ const log = new Logger('Xss');
// Configure DOMPurify
purify.setConfig({
ALLOWED_TAGS: ['a', 'img', 'div', 'span', 'svg', 'g', 'p'], // Allow specific tags
ALLOWED_ATTR: ['href', 'src', 'title', 'id', 'class'], // Allow specific attributes
ALLOWED_ATTR: ['href', 'src', 'title', 'id', 'class', 'target'], // Allow specific attributes
ALLOWED_URI_REGEXP: /^(?!data:|javascript:|vbscript:|file:|view-source:).*/, // Disallow dangerous URIs
});