Skip to content

Commit c8bd116

Browse files
author
marci
committed
Füge Sicherheitsheader hinzu: Implementiere Content-Security-Policy, Referrer-Policy und weitere Sicherheitsmaßnahmen
1 parent e62d30c commit c8bd116

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

hugo.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,23 @@ security:
8888
- (?i)GET|POST
8989
urls:
9090
- .*
91+
92+
headers:
93+
- for: /**
94+
values:
95+
Content-Security-Policy: script-src secure-bits.org
96+
Referrer-Policy: strict-origin-when-cross-origin
97+
X-Content-Type-Options: nosniff
98+
X-Frame-Options: DENY
99+
X-XSS-Protection: 1; mode=block
91100
# permalink
92101
permalinks:
93102
section: /:section/:title/
94103
post: /:section/:year/:month/:day/:slug/
95104
page: /:section/:title/
96105

106+
107+
97108
privacy:
98109
youTube:
99110
disable: false

0 commit comments

Comments
 (0)