Yuki Takei před 2 roky
rodič
revize
6d4e9036d3
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      apps/app/src/server/routes/attachment.js

+ 1 - 0
apps/app/src/server/routes/attachment.js

@@ -264,6 +264,7 @@ module.exports = function(crowi, app) {
     else {
       res.set({
         'Content-Type': attachment.fileFormat,
+        // eslint-disable-next-line max-len
         'Content-Security-Policy': "script-src 'unsafe-hashes'; style-src 'self' 'unsafe-inline'; object-src 'none'; require-trusted-types-for 'script'; media-src 'self'; default-src 'none';",
         'Content-Disposition': `inline;filename*=UTF-8''${encodeURIComponent(attachment.originalName)}`,
       });