I tried to make a get request with axios. I am implementing Xray in my project.
var config = {
method: 'get',
url: 'url',
headers: {
'Authorization': 'token',
'Content-Type': 'application/json',
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
I added my app to allowlist in Jira for avoiding the following issue:

This solution works fine for Jira Rest APIs but not for Xray Rest APIs.
I tried to modify headers.