Skip to content

Build your personal knowledge base with Trilium Notes

disable CSP completely, fixes #1282 (and other similar issues)

zadam8313116b7f49
diff --git a/src/app.js b/src/app.js
index 3cd32aa7cf..c7cd83ad30 100644
--- a/src/app.js
+++ b/src/app.js
@@ -21,12 +21,7 @@ app.set('view engine', 'ejs');
app.use(helmet({
hidePoweredBy: false, // deactivated because electron 4.0 crashes on this right after startup
- contentSecurityPolicy: {
- directives: {
- defaultSrc: ["*", "'unsafe-inline'", "'unsafe-eval'"],
- imgSrc: ["'self' data:"]
- }
- }
+ contentSecurityPolicy: false
}));
app.use(bodyParser.json({limit: '500mb'}));