Closed PiiXiieeS closed 1 year ago
const fetch = require('node-fetch');
const HttpsProxyAgent = require('https-proxy-agent');
const proxyAgent = new HttpsProxyAgent('http://someproxy');
await unfurl("https://google.com", {
fetch: url => fetch(url, { agent: proxyAgent});
})
We have not been able to make unfurl work in internal corporate networks behind a proxy. We use regularly axios with https://github.com/TooTallNate/node-https-proxy-agent as http/https proxy agent.
Would you consider a potential transition to axios or to extend the package to make it compliant with both node-fetch and axios? Or eventually extend the current implementation to make it work behind a proxy.
Thanks for your thoughts!