Request must contain a kbn-xsrf header


(KKD) #1

Team,

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.


(Peter Pisljar) #2

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

with curl something like:

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

(system) #5

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