Просмотр исходного кода

Merge pull request #3191 from weseek/fix/enhance-security-policy-about-getting-attachment

enhance security policy about getting attachment
Yuki Takei 5 лет назад
Родитель
Сommit
34ccee0205
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/server/routes/attachment.js

+ 1 - 1
src/server/routes/attachment.js

@@ -239,7 +239,7 @@ module.exports = function(crowi, app) {
     else {
       res.set({
         'Content-Type': attachment.fileFormat,
-        'Content-Security-Policy': "script-src 'unsafe-hashes'",
+        'Content-Security-Policy': "script-src 'unsafe-hashes'; object-src 'none'; require-trusted-types-for 'script'; default-src 'none';",
       });
     }
   }