Fetch / CORS problem

I’m having a problem with fetch, I’m trying to fetch a whole page from “https://archive.org” but, ofc, CORS is blocking it. The thing is, how do I do to be able to access it, without the extension?

const getPage = async () => {
    const response = await fetch(
        `https://archive.org/details/@jaizon?sort=titleSorter`
    )
    const text = await response.text()
    const parser = new DOMParser()
    const doc = await parser.parseFromString(text, 'text/html')
    const items = await doc.querySelectorAll('.item-ia')
    console.log(items);
}
 
getPage()

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.