Not able to send post request from form

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.

1 Like

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

3 Likes

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

You solved all my problems. :slight_smile:

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