# Not able to send post request from form

**URL:** https://discuss.elastic.co/t/not-able-to-send-post-request-from-form/125485
**Category:** Kibana
**Created:** [March 25, 2018, 12:39pm UTC](https://discuss.elastic.co/t/not-able-to-send-post-request-from-form/125485 "2018-03-25T12:39:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sunny\_Sachan](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@Sunny\_Sachan](https://discuss.elastic.co/u/Sunny_Sachan)
#### Post date: [March 25, 2018, 12:39pm UTC](https://discuss.elastic.co/t/not-able-to-send-post-request-from-form/125485/1 "2018-03-25T12:39:34Z")

</div>

Hi all,

I have made a custom plugin for kibana version 6.2.1, in which I am having a form, now whenever I am submitting those form values with get request all works absolutely fine.

But submitting the form values with a post request I always get the below mentioned response error.

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

kindly help me resolve this error for my post request.

I am using windows OS and kibana version 6.2.1

Any help will be greatly appreciated.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [March 26, 2018, 1:17am UTC](https://discuss.elastic.co/t/not-able-to-send-post-request-from-form/125485/2 "2018-03-26T01:17:07Z")

</div>

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.  
Try it out and let us know

Cheers  
Rashmi

---

<div class="post-metadata">

### Author: ![Sunny\_Sachan](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@Sunny\_Sachan](https://discuss.elastic.co/u/Sunny_Sachan)
#### Post date: [March 26, 2018, 9:25am UTC](https://discuss.elastic.co/t/not-able-to-send-post-request-from-form/125485/3 "2018-03-26T09:25:59Z")

</div>

Many Many thanks Rashmi for your great help and explanation here.

You solved all my problems. 🙂

---

<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: [April 23, 2018, 9:26am UTC](https://discuss.elastic.co/t/not-able-to-send-post-request-from-form/125485/4 "2018-04-23T09:26:00Z")

</div>

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