Merge pull request #29797 from mareklibra/doc.reviveConsumedRequestBodies

fix(doc): document reviveConsumedRequestBodies proxy configuration
This commit is contained in:
Andre Wanlin
2025-05-02 13:49:31 -05:00
committed by GitHub
+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