From d32af60f26c44594c489180f4f83b9b9388d6de7 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Sun, 25 Jan 2026 19:10:34 +0100 Subject: [PATCH] Add cors to stalwart --- stalwart/templates/ingress.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stalwart/templates/ingress.yaml b/stalwart/templates/ingress.yaml index 5c76eb8..bcfbfa2 100644 --- a/stalwart/templates/ingress.yaml +++ b/stalwart/templates/ingress.yaml @@ -8,6 +8,11 @@ metadata: cert-manager.io/cluster-issuer: prod-cluster-issuer nginx.ingress.kubernetes.io/backend-protocol: "HTTP" nginx.ingress.kubernetes.io/ssl-passthrough: "false" + nginx.ingress.kubernetes.io/enable-cors: "true" + nginx.ingress.kubernetes.io/cors-allow-origin: "*" + nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, DELETE, OPTIONS" + nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" + nginx.ingress.kubernetes.io/cors-allow-credentials: "true" spec: ingressClassName: nginx rules: