From d0b0014ae9703510d040a0dcd614efef79436bb6 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Wed, 19 Apr 2023 15:03:46 +0200 Subject: [PATCH] chore(helm): Update cors headers for http Signed-off-by: rjshrjndrn --- .../helmcharts/openreplay/charts/http/templates/ingress.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml b/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml index f86b5e52d..761f97b66 100644 --- a/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml +++ b/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml @@ -12,7 +12,8 @@ metadata: nginx.ingress.kubernetes.io/rewrite-target: /$1 nginx.ingress.kubernetes.io/upstream-hash-by: $http_x_forwarded_for nginx.ingress.kubernetes.io/enable-cors: "true" - nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,Content-Encoding" + nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,Content-Encoding,Content-Length" + nginx.ingress.kubernetes.io/cors-expose-headers: "Content-Length" {{- with .Values.ingress.annotations }} {{- toYaml . | nindent 4 }} {{- end }}