There is [a library](https://github.com/ipfs/helia-verified-fetch) which replaces the built-in `fetch` function with one that will query the IPFS network directly.