Skip to content

Commit 4982ccf

Browse files
committed
Adding comment for why x-elastic-product-origin exists
1 parent b11e5ce commit 4982ccf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/core/server/elasticsearch/default_headers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@
2020
import { deepFreeze } from '@kbn/std';
2121

2222
export const DEFAULT_HEADERS = deepFreeze({
23+
// Elasticsearch uses this to identify when a request is coming from Kibana, to allow Kibana to
24+
// access system indices using the standard ES APIs without logging a warning. After migrating to
25+
// use the new system index APIs, this header can be removed.
2326
'x-elastic-product-origin': 'kibana',
2427
});

0 commit comments

Comments
 (0)