mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Disable automatic passthrough of request/response headers to/from upstream
This commit is contained in:
parent
9b268cfadd
commit
1ed0a2516f
1 changed files with 4 additions and 2 deletions
|
@ -16,10 +16,12 @@ function createProxy(server, method, route, config) {
|
|||
handler: {
|
||||
proxy: {
|
||||
mapUri: mapUri(server),
|
||||
passThrough: true,
|
||||
agent: createAgent(server),
|
||||
xforward: true,
|
||||
timeout: server.config().get('elasticsearch.requestTimeout')
|
||||
timeout: server.config().get('elasticsearch.requestTimeout'),
|
||||
onResponse: function (err, responseFromUpstream, request, reply) {
|
||||
reply(err, responseFromUpstream);
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue