Explorar el Código

add isEnabledXssPrevention for rehype-sanitize

Yohei-Shiina hace 3 años
padre
commit
49fad6d634
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      packages/app/src/pages/[[...path]].page.tsx

+ 4 - 1
packages/app/src/pages/[[...path]].page.tsx

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