From 8ac751db243a95cf88a93b5ab3d27fdb4fdc44c0 Mon Sep 17 00:00:00 2001 From: "johannes.wicovsky" Date: Tue, 2 Aug 2022 14:46:58 +0200 Subject: [PATCH] add cors-config to ingress of smardigo-ocr --- config/default/templates/smardigo-ocr/ingress.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/default/templates/smardigo-ocr/ingress.yaml b/config/default/templates/smardigo-ocr/ingress.yaml index e5ff6df..ca5c063 100644 --- a/config/default/templates/smardigo-ocr/ingress.yaml +++ b/config/default/templates/smardigo-ocr/ingress.yaml @@ -6,6 +6,8 @@ metadata: cert-manager.io/issue-temporary-certificate: "true" kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/preserve-trailing-slash: "true" + nginx.ingress.kubernetes.io/cors-allow-origin: "{{ .Values.smardigo.workflow.host }}" + nginx.ingress.kubernetes.io/cors-allow-credentials: "true" name: "{{ .Release.Name }}-smardigo-ocr-backend" spec: rules: