Request must contain an kbn-xsrf header 報錯


問題:

使用postman調用 kibana接口時,返回了這個錯:

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

 

 

 

解決:

看調用的接口的請求 headers,有個kbn-version,添加到postmanheaders后,接口調通,如圖

 

 

 

 

 

 

 

關於header 和http狀態碼的相關博客:

https://www.cnblogs.com/lichihua/p/8142746.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM