Can I use a proxy in workers

Can I use a proxy when sending a request? Like this:

fetch('',{ agent:new HttpsProxyAgent('')})

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.

1 Like