unable to fetch a page and get Response code 403 (Forbidden) error

184 Views Asked by At

Using got I want to get the web page like this:

const { data } = await got.get(`https://www.powerthesaurus.org/trust/synonyms`);
console.log(data)

But this gives me this error:

HTTPError: Response code 403 (Forbidden)

Using axios I get the same error 403.

How can I fix this ?

0

There are 0 best solutions below