helmet upgrade to v5

This commit is contained in:
Karsten Hassel
2022-01-11 20:48:04 +01:00
parent 8cb6015930
commit 9604c3a187
4 changed files with 11 additions and 10 deletions

View File

@@ -67,7 +67,7 @@ function Server(config, callback) {
res.status(403).send("This device is not allowed to access your mirror. <br> Please check your config.js or config.js.sample to change this.");
});
});
app.use(helmet({ contentSecurityPolicy: false }));
app.use(helmet({ contentSecurityPolicy: false, crossOriginOpenerPolicy: false }));
app.use("/js", express.static(__dirname));