It seems like that is running on a Cloudflare worker, which I would like to do, but this code would not run on a Cloudflare worker, as far as I can tell.
> ping cors.isomorphic-git.org
PING cors.isomorphic-git.org (172.67.176.121): 56 data bytes
> whois 172.67.176.121
NetRange: 172.64.0.0 - 172.71.255.255
CIDR: 172.64.0.0/13
NetName: CLOUDFLARENET
NetHandle: NET-172-64-0-0-1
Parent: NET172 (NET-172-0-0-0-0)
NetType: Direct Allocation
OriginAS: AS13335
Organization: Cloudflare, Inc. (CLOUD14)
RegDate: 2015-02-25
Updated: 2021-05-26
Comment: All Cloudflare abuse reporting can be done via https://www.cloudflare.com/abuse
Ref: https://rdap.arin.net/registry/ip/172.64.0.0
It seems like that is running on a Cloudflare worker, which I would like to do, but this code would not run on a Cloudflare worker, as far as I can tell.