Can I use a proxy when sending a request? Like this:
fetch('https://www.google.com',{ agent:new HttpsProxyAgent('http://127.0.0.1:8580')})
.then(function(res){
//
})
I need to send requests using a proxy.
Can I use a proxy when sending a request? Like this:
fetch('https://www.google.com',{ agent:new HttpsProxyAgent('http://127.0.0.1:8580')})
.then(function(res){
//
})
I need to send requests using a proxy.
The fetch
API available in Workers is like the one present in browsers and does not support NodeJS-specific features like proxies.