Skip to content

Commit

Permalink
instead of relying on ocis fallback, always provide OCIS_CORS_ALLOW_O…
Browse files Browse the repository at this point in the history
…RIGINS
  • Loading branch information
wkloucek committed Sep 12, 2024
1 parent a2fca4b commit c782cfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/ocis/templates/_common/_tplvalues.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}

Expand Down

0 comments on commit c782cfb

Please sign in to comment.