Skip to content

Commit b91aca2

Browse files
Add Content-Security-Policy header templating for portal
1 parent b0ba8f0 commit b91aca2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

templates/portal/configmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ data:
6363
}
6464
location = /index.html {
6565
add_header Cache-Control "no-store, no-cache, must-revalidate";
66+
{{- with .Values.portal.contentSecurityPolicy }}
67+
add_header Content-Security-Policy {{ . }}
68+
{{- end }}
6669
}
6770
}
6871
}

values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ portal:
566566
# - name: wait
567567
# image: busybox
568568
# command: [ 'sh', '-c', "sleep 20" ]
569+
contentSecurityPolicy: ""
569570

570571
core:
571572
image:

0 commit comments

Comments
 (0)