Request must contain a kbn-xsrf header


I have a REST api which creates a customer. I have set app: { noKbnVersion: true}, to the API config. I got the following error.

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

Could you please help.

Thank you.

1 Like

i think you should set the kbn-xsrf: reporting header

with curl something like:

curl -k -XPOST -H "kbn-xsrf: reporting" http://localhost:5601/...

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