[uiSettingsClient] use kbn-version header (#18746)

(cherry picked from commit 6486db7280)
This commit is contained in:
Spencer 2018-05-03 09:44:31 -07:00 committed by spalger
parent 47eecccd76
commit 8e6618b426

View file

@ -1,4 +1,5 @@
import chrome from 'ui/chrome';
import { metadata } from 'ui/metadata';
export async function sendRequest({ method, path, body }) {
chrome.loadingCount.increment();
@ -9,7 +10,7 @@ export async function sendRequest({ method, path, body }) {
headers: {
accept: 'application/json',
'content-type': 'application/json',
'kbn-xsrf': 'kibana',
'kbn-version': metadata.version,
},
credentials: 'same-origin'
});