From fc412f7251e13c7e38a2e8b46a411e4ff9ca98a1 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Tue, 17 Mar 2026 13:49:01 +0100 Subject: [PATCH] fix: use relative API URL in feature branch UI to eliminate CORS errors Browser requests now go to the UI origin and nginx proxies them to the backend within the cluster. Removes the separate API Ingress host rule since API traffic no longer needs its own subdomain. Co-Authored-By: Claude Opus 4.6 (1M context) --- deploy/overlays/feature/ingress.yaml | 10 ---------- deploy/overlays/feature/kustomization.yaml | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/deploy/overlays/feature/ingress.yaml b/deploy/overlays/feature/ingress.yaml index 79655e17..eb4d8e53 100644 --- a/deploy/overlays/feature/ingress.yaml +++ b/deploy/overlays/feature/ingress.yaml @@ -4,16 +4,6 @@ metadata: name: cameleer-branch-ingress spec: rules: - - host: BRANCH_SLUG-api.cameleer.siegeln.net - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: cameleer3-server - port: - number: 8081 - host: BRANCH_SLUG.cameleer.siegeln.net http: paths: diff --git a/deploy/overlays/feature/kustomization.yaml b/deploy/overlays/feature/kustomization.yaml index 91ab5b37..cc957721 100644 --- a/deploy/overlays/feature/kustomization.yaml +++ b/deploy/overlays/feature/kustomization.yaml @@ -38,5 +38,5 @@ patches: path: /data/config.js value: | window.__CAMELEER_CONFIG__ = { - apiBaseUrl: 'http://BRANCH_SLUG-api.cameleer.siegeln.net/api/v1', + apiBaseUrl: '/api/v1', };