Skip to content

Commit

Permalink
Remove use of ui/chrome in request header
Browse files Browse the repository at this point in the history
This is an unnecessary use: kibana works the same no matter what
contents the `kbn-xsrf` header contains (as long as it's there).
  • Loading branch information
rylnd committed Jan 7, 2020
1 parent 0d923e8 commit ae70785
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/legacy/plugins/siem/public/lib/compose/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ export const getLinks = (cache: InMemoryCache) => [
}),
new HttpLink({
credentials: 'same-origin',
headers: {
'kbn-xsrf': chrome.getXsrfToken(),
},
headers: { 'kbn-xsrf': 'true' },
uri: `${chrome.getBasePath()}/api/siem/graphql`,
}),
];

0 comments on commit ae70785

Please sign in to comment.