# Getting Bad Request with message Request must contain a kbn-xsrf header

**URL:** https://discuss.elastic.co/t/getting-bad-request-with-message-request-must-contain-a-kbn-xsrf-header/154138
**Category:** Kibana
**Created:** [October 26, 2018, 8:09am UTC](https://discuss.elastic.co/t/getting-bad-request-with-message-request-must-contain-a-kbn-xsrf-header/154138 "2018-10-26T08:09:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Geet](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@Geet](https://discuss.elastic.co/u/Geet)
#### Post date: [October 26, 2018, 8:09am UTC](https://discuss.elastic.co/t/getting-bad-request-with-message-request-must-contain-a-kbn-xsrf-header/154138/1 "2018-10-26T08:09:27Z")

</div>

Hi , i am new to Kiabana , and when trying to Login , i am getting :

{"statusCode":400,"error":"Bad Request","message":"Request must contain a kbn-xsrf header."}

Can anyone help ??

Because somewhere i read that :

Hi,

Kibana expects the header 'kbn-version' to be passed on requests, it's used to protect against xsrf attacks.  
for ex:  
`adding -H kbn-version:x.x.x` should get around that error.

I don't know , where to add this thing....

---

<div class="post-metadata">

### Author: ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)
#### Post date: [October 26, 2018, 5:09pm UTC](https://discuss.elastic.co/t/getting-bad-request-with-message-request-must-contain-a-kbn-xsrf-header/154138/2 "2018-10-26T17:09:52Z")

</div>

Hi @Geet,

I have a couple of questions to help me better understand your problem:

1. What version of Kibana are you running?
2. How is Kibana installed and hosted?
3. Can you provide your `kibana.yml` configuration? Omit any sensitive data, like passwords and encryption keys.
4. Is there a proxy in front of Kibana that you are using? If so, can you also post your proxy configuration?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 23, 2018, 5:09pm UTC](https://discuss.elastic.co/t/getting-bad-request-with-message-request-must-contain-a-kbn-xsrf-header/154138/3 "2018-11-23T17:09:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
