When I make my web request in the firefox devtools I get two network responses
However when I make a request using axios
const axios = require('axios');
axios.get(`https://assetdelivery.roblox.com/v1/asset?assetVersionId=7962125228`,
{ headers: {
'User-Agent': 'Roblox.com',
'content-type': 'application/json'
}})
.then(response => {
console.log(response.status);
console.log(response.headers['roblox-assetid']);
})
.catch(function(e) {
console.log(e);
});
Axios is only printing out the response to the second response, and I need data from the first response with the status of 302, but I only get the 200 status response
Aucun commentaire:
Enregistrer un commentaire