|
@@ -264,7 +264,8 @@ module.exports = function(crowi, app) {
|
|
|
else {
|
|
else {
|
|
|
res.set({
|
|
res.set({
|
|
|
'Content-Type': attachment.fileFormat,
|
|
'Content-Type': attachment.fileFormat,
|
|
|
- 'Content-Security-Policy': "script-src 'unsafe-hashes'; object-src 'none'; require-trusted-types-for 'script'; media-src 'self'; default-src 'none';",
|
|
|
|
|
|
|
+ '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)}`,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|