fix(doc): document reviveConsumedRequestBodies proxy configuration
Signed-off-by: Marek Libra <marek.libra@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user