|
@@ -549,10 +549,13 @@ function injectServerConfigurations(context: GetServerSidePropsContext, props: P
|
|
|
blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
|
|
blockdiagUri: process.env.BLOCKDIAG_URI ?? null,
|
|
|
|
|
|
|
|
// XSS Options
|
|
// XSS Options
|
|
|
- isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:xss:isEnabledPrevention'),
|
|
|
|
|
|
|
+ // isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:xss:isEnabledPrevention'),
|
|
|
attrWhiteList: crowi.xssService.getAttrWhiteList(),
|
|
attrWhiteList: crowi.xssService.getAttrWhiteList(),
|
|
|
tagWhiteList: crowi.xssService.getTagWhiteList(),
|
|
tagWhiteList: crowi.xssService.getTagWhiteList(),
|
|
|
highlightJsStyleBorder: crowi.configManager.getConfig('crowi', 'customize:highlightJsStyleBorder'),
|
|
highlightJsStyleBorder: crowi.configManager.getConfig('crowi', 'customize:highlightJsStyleBorder'),
|
|
|
|
|
+
|
|
|
|
|
+ // XSS: rehype-sanitize options
|
|
|
|
|
+ isEnabledXssPrevention: configManager.getConfig('markdown', 'markdown:rehypeSanitize:isEnabledPrevention'),
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
props.sidebarConfig = {
|
|
props.sidebarConfig = {
|