Custom endpoint POST error

Hi team,
i m creating custom endpoint for my visualization. Code is:
server.route({ method: 'POST', path: '/api/rt_record', handler: function (req, h) { const payload = req.payload; return h.payload; }, });
so there is error while i m trying to record via this url :
"statusCode": 400, "error": "Bad Request", "message": "Request must contain a kbn-xsrf header."

I believe the requests to your endpoint needs to set the kbn-xsrf header.

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