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

This commit is contained in:
Spencer 2018-05-03 09:44:31 -07:00 committed by GitHub
parent 3332143d14
commit 6486db7280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'
});