Skip to content

Commit e62d30c

Browse files
author
marci
committed
Füge Sicherheitsheader hinzu: Erlaube bestimmte Befehle und definiere HTTP-Methoden für die Ausführung
1 parent dbbdbc2 commit e62d30c

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

hugo.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,29 @@ languages:
6565

6666
# Force a locale to be use, really useful to develop the application ! Should be commented in production, the "weight" should rocks.
6767
DefaultContentLanguage: de
68-
68+
# Security headers
69+
security:
70+
enableInlineShortcodes: false
71+
exec:
72+
allow:
73+
- ^(dart-)?sass(-embedded)?$
74+
- ^go$
75+
- ^git$
76+
- ^npx$
77+
- ^postcss$
78+
- ^tailwindcss$
79+
osEnv:
80+
- (?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|(XDG_CONFIG_)?HOME|USERPROFILE|SSH_AUTH_SOCK|DISPLAY|LANG|SYSTEMDRIVE)$
81+
funcs:
82+
getenv:
83+
- ^HUGO_
84+
- ^CI$
85+
http:
86+
mediaTypes: null
87+
methods:
88+
- (?i)GET|POST
89+
urls:
90+
- .*
6991
# permalink
7092
permalinks:
7193
section: /:section/:title/

0 commit comments

Comments
 (0)