From 63d8baba588ffd0d1ed5392072a4d834fab21fbe Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Tue, 6 Jun 2023 15:50:08 +0200 Subject: [PATCH] chore(helm): Adding cors as value header --- .../helmcharts/openreplay/charts/http/templates/ingress.yaml | 3 --- scripts/helmcharts/openreplay/charts/http/values.yaml | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml b/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml index 1a936095c..ab2aeb2da 100644 --- a/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml +++ b/scripts/helmcharts/openreplay/charts/http/templates/ingress.yaml @@ -14,9 +14,6 @@ metadata: {{- end }} 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,Content-Length" - nginx.ingress.kubernetes.io/cors-expose-headers: "Content-Length" spec: ingressClassName: "{{ tpl .Values.ingress.className . }}" tls: diff --git a/scripts/helmcharts/openreplay/charts/http/values.yaml b/scripts/helmcharts/openreplay/charts/http/values.yaml index f4c0d5841..9646c465b 100644 --- a/scripts/helmcharts/openreplay/charts/http/values.yaml +++ b/scripts/helmcharts/openreplay/charts/http/values.yaml @@ -70,6 +70,11 @@ ingress: nginx.ingress.kubernetes.io/proxy-connect-timeout: "120" nginx.ingress.kubernetes.io/proxy-send-timeout: "300" nginx.ingress.kubernetes.io/proxy-read-timeout: "300" + nginx.ingress.kubernetes.io/cors-allow-methods: POST + nginx.ingress.kubernetes.io/cors-allow-headers: Content-Type,Authorization,Content-Encoding + nginx.ingress.kubernetes.io/cors-allow-origin: '*' + nginx.ingress.kubernetes.io/enable-cors: "true" + nginx.ingress.kubernetes.io/cors-expose-headers: "Content-Length" # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" tls: