Skip to content

fix: resolve CORS misconfiguration blocking test-admin /verify endpoint#393

Open
arnoldcastro5000 wants to merge 3 commits intoGreenstand:mainfrom
arnoldcastro5000:fix/test-cors-mapping
Open

fix: resolve CORS misconfiguration blocking test-admin /verify endpoint#393
arnoldcastro5000 wants to merge 3 commits intoGreenstand:mainfrom
arnoldcastro5000:fix/test-cors-mapping

Conversation

@arnoldcastro5000
Copy link
Copy Markdown

Fixes #1191

Root Cause

mapping.yaml in overlays/test/ was not referenced in kustomization.yaml,
meaning the Ambassador CORS configuration was never applied to the test environment.
Additionally, the mapping had an incorrect double-nested cors.cors schema which
would have silently failed even if applied.

Changes

  • kustomization.yaml: added mapping.yaml to patchesStrategicMerge
  • mapping.yaml: corrected Ambassador v2 CORS schema (removed double cors nesting)

Verification

  • dev-admin.treetracker.org/verify works correctly (dev mapping is applied)
  • test-admin.treetracker.org/verify returns CORS error — confirmed via browser
    dev tools: No 'Access-Control-Allow-Origin' header present
  • The fix mirrors the pattern that works in dev

fix: add mapping.yaml to test overlay kustomization
fix: correct ambassador cors schema double-nesting in test mapping
fix: add namespace webmap to match base resource for kustomize patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant