Is it possible to access cookie and modify the request header with the custom hook in DashRenderer? E.g. is the request object available/changeable in the javascript context?
var renderer = new DashRenderer({
request_pre: (payload) => {
// access x-xsrf-token here: “x-xsrf-token” = cookie.parse(document.cookie).[‘XSRF-TOKEN’],
// assign to request
},
request_post: (payload, response) => {
// print out payload and response parameter
console.log(payload);
console.log(response);
}
})