Skip to content

Commit 971412c

Browse files
authored
Merge pull request #27344 from jimangel/clickjack
adding header config for netlify
2 parents 8b8650e + 2885caa commit 971412c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

netlify.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,10 @@ command = "git submodule update --init --recursive --depth 1 && make deploy-prev
2727
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
2828
publish = "public"
2929
command = "git submodule update --init --recursive --depth 1 && make production-build"
30+
31+
# adding in headers to prevent clickjacking
32+
[[headers]]
33+
for = "/*"
34+
[headers.values]
35+
X-Frame-Options = "DENY"
36+
X-XSS-Protection = "1; mode=block"

0 commit comments

Comments
 (0)