mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
fixed CSP after upgrade to helmet 4
This commit is contained in:
@@ -20,7 +20,12 @@ app.set('views', path.join(__dirname, 'views'));
|
||||
app.set('view engine', 'ejs');
|
||||
|
||||
app.use(helmet({
|
||||
hidePoweredBy: false // deactivated because electron 4.0 crashes on this right after startup
|
||||
hidePoweredBy: false, // deactivated because electron 4.0 crashes on this right after startup
|
||||
contentSecurityPolicy: {
|
||||
directives: {
|
||||
defaultSrc: ["*", "'unsafe-inline'"]
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
app.use(bodyParser.json({limit: '500mb'}));
|
||||
|
||||
Reference in New Issue
Block a user