added a new config option httpHeaders used by helmet

This commit is contained in:
Karsten Hassel 2022-05-13 22:25:18 +02:00
parent d730dd04bf
commit 3b55886c45
3 changed files with 6 additions and 1 deletions

View file

@ -69,7 +69,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, crossOriginOpenerPolicy: false, crossOriginEmbedderPolicy: false, crossOriginResourcePolicy: false, originAgentCluster: false }));
app.use(helmet(config.httpHeaders));
app.use("/js", express.static(__dirname));