Axios makes two (*1 & *2 ) requests with this provided code. The problem is that the necessary headers are only used once.
const token = getAuthToken()
axios
.get("myResourceUrl", {
headers: {
authorization: token ? `Bearer ${token}` : '',
},
})
I need the provided headers in the second request. Why axios makes two requests and how to pass the headers to the second one?
I provided the full header resources in the screenshots. In the first, there are only a few headers while in the second one there are some more fields.