Added frame options
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DutchEllie 2022-04-20 14:45:04 +02:00
parent 8d0b6a37c1
commit 4cd86be5a0
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:UU8yhd1Bh8exU88ev0ej/Dm+CeyfR/ZIDRrpRfYdfbg
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,9 @@ ingress:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: letsencrypt-prod
external-dns.alpha.kubernetes.io/hostname: "newsite.dutchellie.nl" external-dns.alpha.kubernetes.io/hostname: "newsite.dutchellie.nl"
nginx.ingress.kubernetes.io/configuration-snippet: |
add_header Content-Security-Policy "frame-ancestors 'self' https://forestofunix.xyz";
proxy_hide_header X-Frame-Options ;
tls: tls:
- hosts: - hosts:
- newsite.dutchellie.nl - newsite.dutchellie.nl

View File

@ -7,7 +7,8 @@ ingress:
cert-manager.io/cluster-issuer: letsencrypt-staging cert-manager.io/cluster-issuer: letsencrypt-staging
external-dns.alpha.kubernetes.io/hostname: "newsite.staging.dutchellie.nl" external-dns.alpha.kubernetes.io/hostname: "newsite.staging.dutchellie.nl"
nginx.ingress.kubernetes.io/configuration-snippet: | nginx.ingress.kubernetes.io/configuration-snippet: |
add_header Content-Security-Policy "default-src 'self'; frame-ancestors 'forestofunix.xyz'"; add_header Content-Security-Policy "frame-ancestors 'self' https://forestofunix.xyz";
proxy_hide_header X-Frame-Options ;
tls: tls:
- hosts: - hosts:
- newsite.staging.dutchellie.nl - newsite.staging.dutchellie.nl