Merge pull request #27344 from jimangel/clickjack

adding header config for netlify
pull/27362/head
Kubernetes Prow Robot 2021-03-31 09:05:01 -07:00 committed by GitHub
commit 971412c3fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -27,3 +27,10 @@ command = "git submodule update --init --recursive --depth 1 && make deploy-prev
# DO NOT REMOVE THIS (contact @kubernetes/sig-docs-leads)
publish = "public"
command = "git submodule update --init --recursive --depth 1 && make production-build"
# adding in headers to prevent clickjacking
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"