Fix/protecting against xss in svg
@@ -228,7 +228,10 @@ module.exports = function(crowi, app) {
}
// reference
else {
- res.set('Content-Type', attachment.fileFormat);
+ res.set({
+ 'Content-Type': attachment.fileFormat,
+ 'Content-Security-Policy': "script-src 'unsafe-hashes'",
+ });