mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2024-12-22 18:29:48 +01:00
fix font csp (#22)
This commit is contained in:
parent
8d007514a6
commit
7f05179c9c
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -20,7 +20,7 @@ app.use(expressEJSLayouts);
|
|||
|
||||
app.use((req, res, next) => {
|
||||
// Security Headers - Refer to MDN and helmetjs docs
|
||||
res.set("Content-Security-Policy", `default-src 'self'; img-src 'self'; media-src 'self'; script-src 'unsafe-inline' 'self' https://cdn.jsdelivr.net https://code.jquery.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; font-src 'self'; object-src 'none'; child-src 'none'; frame-ancestors 'none'; frame-src 'none'; upgrade-insecure-requests`);
|
||||
res.set("Content-Security-Policy", `default-src 'self'; img-src 'self'; media-src 'self'; script-src 'unsafe-inline' 'self' https://cdn.jsdelivr.net https://code.jquery.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; font-src 'self' data:; object-src 'none'; child-src 'none'; frame-ancestors 'none'; frame-src 'none'; upgrade-insecure-requests`);
|
||||
res.set("Strict-Transport-Security", "max-age=15552000; includeSubDomains");
|
||||
res.set("X-Content-Type-Options", "nosniff");
|
||||
res.set("X-Frame-Options", "DENY");
|
||||
|
|
Loading…
Reference in a new issue