mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
15 lines
489 B
JavaScript
15 lines
489 B
JavaScript
const config = {
|
|
// Super strict rules to make sure users only submit the tags they are allowed
|
|
dompurify: { ALLOWED_TAGS: ['b', 'i', 'blockquote'] },
|
|
|
|
// Secure config for jsdom even when DOMPurify creates a document without a browsing context
|
|
jsdom: {
|
|
features: {
|
|
FetchExternalResources: false, // disables resource loading over HTTP / filesystem
|
|
ProcessExternalResources: false, // do not execute JS within script blocks
|
|
},
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|