fix(vault): correctly rewrite paths for vault API proxy (#149)

This commit is contained in:
2026-08-02 19:47:07 -04:00
committed by GitHub
parent 7782cf8973
commit ef2207ed72
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ function vaultProxy() {
return createProxyMiddleware({
target: VAULT_ADDR,
changeOrigin: true,
pathRewrite: { '^/': '/v1/' },
pathRewrite: { '^/api/vault': '/v1' },
on: {
proxyReq(proxyReq, req, res, options) {
fixRequestBody(proxyReq, req, res, options);