We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeb4742 commit 5365a6bCopy full SHA for 5365a6b
src/core_plugins/console/index.js
@@ -3,6 +3,7 @@ import apiServer from './api_server/server';
3
import { existsSync } from 'fs';
4
import { resolve, join, sep } from 'path';
5
import { has, isEmpty } from 'lodash';
6
+import setHeaders from '../elasticsearch/lib/set_headers';
7
8
import {
9
ProxyConfigCollection,
@@ -83,7 +84,8 @@ export default function (kibana) {
83
84
pathFilters: proxyPathFilters,
85
getConfigForReq(req, uri) {
86
const whitelist = config.get('elasticsearch.requestHeadersWhitelist');
- const headers = filterHeaders(req.headers, whitelist);
87
+ const filteredHeaders = filterHeaders(req.headers, whitelist);
88
+ const headers = setHeaders(filteredHeaders, config.get('elasticsearch.customHeaders'));
89
90
if (!isEmpty(config.get('console.proxyConfig'))) {
91
return {
0 commit comments