From 3785d720a87379a5793bfdd28e6ecbb3b717d4fc Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Thu, 4 Nov 2021 23:34:49 +0300 Subject: [PATCH] gateway-web cors error fix --- .../charts/gateway-web/templates/gateway-web-deployment.yaml | 5 ++++- etc/k8s/eshoponabp/charts/gateway-web/values.yaml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-deployment.yaml b/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-deployment.yaml index bcda37ff..75e1f1a0 100644 --- a/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-deployment.yaml +++ b/etc/k8s/eshoponabp/charts/gateway-web/templates/gateway-web-deployment.yaml @@ -22,10 +22,13 @@ spec: containerPort: 443 volumeMounts: - name: config-volume - mountPath: /app/appsettings.json + mountPath: /app/appsettings.json + subPath: appsettings.json env: - name: App__SelfUrl value: "{{ .Values.config.selfUrl }}" + - name: App__CorsOrigins + value: "{{ .Values.config.corsOrigins }}" - name: GlobalConfiguration__BaseUrl value: "{{ .Values.config.globalConfigurationBaseUrl }}" - name: "DOTNET_ENVIRONMENT" diff --git a/etc/k8s/eshoponabp/charts/gateway-web/values.yaml b/etc/k8s/eshoponabp/charts/gateway-web/values.yaml index ec5ff94f..68d4588f 100644 --- a/etc/k8s/eshoponabp/charts/gateway-web/values.yaml +++ b/etc/k8s/eshoponabp/charts/gateway-web/values.yaml @@ -1,5 +1,6 @@ config: selfUrl: # https://eshop-st-gateway-web + corsOrigins: # localhost:4200 globalConfigurationBaseUrl: # http://eshop-st-gateway-web authServer: authority: http://eshop-st-authserver