From fb5fb3ae08452d16e7f57fd2d671486e1d238a52 Mon Sep 17 00:00:00 2001 From: Matthew Daubney Date: Tue, 20 Oct 2026 11:19:20 +0100 Subject: [PATCH] Allow OpenBao's own UI origin in the compose CORS setup Co-Authored-By: Claude Sonnet 5.5 --- docker-compose.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f7c2c04..e0ce559 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: