From 5e1149d1ff37bbdac6d604161644e1c386e885d4 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sun, 30 Jun 2024 16:36:32 +0200 Subject: [PATCH] feat(deploy): add cors ingress headers --- deploy/values.staging.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/values.staging.yaml b/deploy/values.staging.yaml index 594be36..87d2517 100644 --- a/deploy/values.staging.yaml +++ b/deploy/values.staging.yaml @@ -3,6 +3,9 @@ ingress: host: staging.yggdrasil.vmdevel.cz annotations: cert-manager.io/cluster-issuer: letsencrypt-dns-production + nginx.ingress.kubernetes.io/enable-cors: "true" + nginx.ingress.kubernetes.io/cors-allow-origin: "https://staging.midgard.vmdevel.cz,http://localhost:5173" + nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, DELETE" replicas: 2