mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Merge pull request #2785 from khassel/helmet-fix
This commit is contained in:
commit
aafeb1e875
@ -18,7 +18,7 @@ _This release is scheduled to be released on 2022-04-01._
|
||||
### Updated
|
||||
|
||||
- deprecated roboto fonts package `roboto-fontface-bower` replaced with `fontsource`.
|
||||
- update `helmet` to v5.
|
||||
- update `helmet` to v5, use defaults of v4.
|
||||
- updates Font Awesome css class to new default style (fixes #2768)
|
||||
|
||||
### Fixed
|
||||
|
@ -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, crossOriginOpenerPolicy: false }));
|
||||
app.use(helmet({ contentSecurityPolicy: false, crossOriginOpenerPolicy: false, crossOriginEmbedderPolicy: false, crossOriginResourcePolicy: false, originAgentCluster: false }));
|
||||
|
||||
app.use("/js", express.static(__dirname));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user