mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[uiSettingsClient] use kbn-version header (#18746)
This commit is contained in:
parent
3332143d14
commit
6486db7280
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue