Allow OpenBao's own UI origin in the compose CORS setup
CI / integration (push) Successful in 10s
CI / check (push) Successful in 13s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mattandClaude Sonnet 5.5 committed 2026-10-20 11:19:20 +01:00
1 parent 4706014dc2
commit fb5fb3ae08
1 file changed
+3 -2
+3 -2
View File
@@ -15,7 +15,8 @@ services:
interval: 2s
retries: 15
# One-shot: allow the UI origin to call OpenBao from the browser.
# One-shot: allow the UI origin to call OpenBao from the browser. OpenBao's own
# web UI (:8200) is same-origin but still sends an Origin header, so it is listed too.
openbao-setup:
image: openbao/openbao:latest
depends_on:
@@ -24,7 +25,7 @@ services:
environment:
BAO_ADDR: http://openbao:8200
BAO_TOKEN: root
entrypoint: ["bao", "write", "sys/config/cors", "enabled=true", "allowed_origins=http://localhost:8080", "allowed_headers=X-Vault-Token,Content-Type"]
entrypoint: ["bao", "write", "sys/config/cors", "enabled=true", "allowed_origins=http://localhost:8080,http://localhost:8200", "allowed_headers=X-Vault-Token,Content-Type"]
restart: "no"
ui: