mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 22:44:44 +08:00
disable CSP completely, fixes #1282 (and other similar issues)
This commit is contained in:
parent
90622d71f8
commit
8313116b7f
1 changed files with 1 additions and 6 deletions
|
@ -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'}));
|
||||
|
|
Loading…
Reference in a new issue