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.
i think you should set the kbn-xsrf: reporting header
kbn-xsrf: reporting
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.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.