hi,i am working locally on a website,i have to do a get api request,i am using axios module, but there is an error, the console show a 403 error “(forbidden)” i think that it has something to do with CORS but i didn’t succed to fix it,i have to use headers,here is the code:
var headers = {
'X-RapidAPI-Host': 'api-football-v1.p.rapidapi.com',
'X-RapidAPI-Key' : 'c7ff39f1ccmsh87edde31cc65e31p12da7ajsn4e97b9ad7a1e',
}
axios({
method:'get',
url:"https://api-football-v1.p.rapidapi.com/fixtures/live",
headers: headers,
withCredentials: true
})
.then((response) => { console.log(response) } )
}