diff --git a/app.js b/app.js index b6cee74..4f3aa66 100644 --- a/app.js +++ b/app.js @@ -27,7 +27,9 @@ function checkGateways (gateways) { let checked = 0 gateways.forEach((gateway) => { const gatewayAndHash = gateway.replace(':hash', hashToTest) - fetch(gatewayAndHash) + // opt-out from gateway redirects done by browser extension + const testUrl = gatewayAndHash + '#x-ipfs-companion-no-redirect' + fetch(testUrl) .then(res => res.text()) .then((text) => { const matched = text.trim() === hashString.trim() diff --git a/gateways.json b/gateways.json index 1437c3e..2ba28f0 100644 --- a/gateways.json +++ b/gateways.json @@ -17,5 +17,6 @@ "https://api.wisdom.sh/ipfs/:hash", "https://gateway.blocksec.com/ipfs/:hash", "https://ipfs.renehsz.com/ipfs/:hash", - "https://ipns.co/:hash" + "https://cloudflare-ipfs.com/ipfs/:hash", + "https://ipns.co/:hash" ]