cloudflare TLS peer's certificate is not trusted; reason = unable to get local issuer certificate

Hi, I'm trying to use a fetch request in a worker to access a site with a self-signed certificate. In Node.js, I can set the environment variable 'NODE_TLS_REJECT_UNAUTHORIZED' to 0 to get data, but it doesn't seem to work in a worker. Is there any way to make it possible to retrieve data from the destination site? P.S. I don't own the destination site.
Was this page helpful?