Allow OpenBao's own UI origin in the compose CORS setup
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4706014dc2
commit
fb5fb3ae08
1 file changed
+3
-2
+3
-2
@@ -15,7 +15,8 @@ services:
|
|||||||
interval: 2s
|
interval: 2s
|
||||||
retries: 15
|
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:
|
openbao-setup:
|
||||||
image: openbao/openbao:latest
|
image: openbao/openbao:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -24,7 +25,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
BAO_ADDR: http://openbao:8200
|
BAO_ADDR: http://openbao:8200
|
||||||
BAO_TOKEN: root
|
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"
|
restart: "no"
|
||||||
|
|
||||||
ui:
|
ui:
|
||||||
|
|||||||
Reference in new issue
Block a user