Skip to content

Commit 5d04c87

Browse files
committed
Configure https security headers
The following headers are added: Content-Security-Policy: allow loading any content from jquery (js), and google and fontawesome (fonts and style). X-Frame-Options: Don't allow iframes X-Content-Type-Options: stop browser from trying to MIME-sniff the content type and force it to stick with the declared content-type. Referrer-Policy: Don't include referrer path in when moving from https to http. Permissions-Policy: Disallow FloC Web-Tracking (experimental) See scan result and details about individual headers on: https://securityheaders.com/?q=https%3A%2F%2Ftheupdateframework.io Cheers to @adityasaky and his model PR in in-toto/in-toto.io#7 Signed-off-by: Lukas Puehringer <[email protected]>
1 parent dc9b68c commit 5d04c87

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

netlify.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ to = "https://theupdateframework.github.io/specification/"
2222
[[redirects]]
2323
from = "/specification"
2424
to = "https://theupdateframework.github.io/specification/latest/"
25+
26+
[[headers]]
27+
for = "/*"
28+
[headers.values]
29+
Content-Security-Policy = "default-src 'self' code.jquery.com fonts.googleapis.com fonts.gstatic.com use.fontawesome.com"
30+
X-Frame-Options = "deny"
31+
X-Content-Type-Options = "nosniff"
32+
Referrer-Policy = "no-referrer-when-downgrade"
33+
permissions-policy = "interest-cohort=()"

0 commit comments

Comments
 (0)