CORS Error while trying to fetch data from Upwork api

128 Views Asked by At

I am getting cors error on all the APIs of Upwork. I am using a react application. Below is one of the api

axios.get('https://www.upwork.com/api/profiles/v2/search/jobs.json',{
    headers: {
        Authorization': `Bearer token`,
        'Access-Control-Allow-Origin': '*',
    }
})

error from the console

1

There are 1 best solutions below

0
mnovozhylov On

CORS requests are prohibited for security reasons.