From c782cfb998f90776579a058c66576d95fdfc964c Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Thu, 12 Sep 2024 07:48:48 +0200 Subject: [PATCH] instead of relying on ocis fallback, always provide OCIS_CORS_ALLOW_ORIGINS --- charts/ocis/templates/_common/_tplvalues.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/ocis/templates/_common/_tplvalues.tpl b/charts/ocis/templates/_common/_tplvalues.tpl index 253ed01a7..cf0da3bf8 100644 --- a/charts/ocis/templates/_common/_tplvalues.tpl +++ b/charts/ocis/templates/_common/_tplvalues.tpl @@ -235,11 +235,11 @@ oCIS deployment CORS template */}} {{- define "ocis.cors" -}} -- name: OCIS_URL - value: "https://{{ .Values.externalDomain }}" -{{- if .Values.http.cors.allow_origins }} - name: OCIS_CORS_ALLOW_ORIGINS +{{- if .Values.http.cors.allow_origins }} value: {{ without .Values.http.cors.allow_origins "" | join "," | quote }} +{{- else }} + value: "https://{{ .Values.externalDomain }}" {{- end }} {{- end -}}