fix(doc): document reviveConsumedRequestBodies proxy configuration

Signed-off-by: Marek Libra <marek.libra@gmail.com>
This commit is contained in:
Marek Libra
2025-04-30 11:33:15 +02:00
parent 64ddf3097d
commit 49010f03f0
+7
View File
@@ -41,6 +41,7 @@ Example:
```yaml
# in app-config.yaml
proxy:
reviveConsumedRequestBodies: true
endpoints:
/simple-example: http://simple.example.com:8080
'/larger-example/v1':
@@ -121,6 +122,12 @@ third parties.
The same logic applies to headers that are sent from the target back to the
frontend.
### Passing POST-request body
To fix the issue with missing request body passed by proxy to the target, set `proxy.reviveConsumedRequestBodies: true`, so the `fixRequestBody` handler of [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware?tab=readme-ov-file#intercept-and-manipulate-requests) will be used.
In that case, mind setting the `Content-Type` header to either `application/json` or `application/x-www-form-urlencoded`.
### Proxy Extension Endpoint
The proxy plugin additionally supports a `proxyExtensionEndpoint` which a proxy