Rob--W / cors-anywhere

CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request.
MIT License
8.57k stars 5.99k forks source link

add workaround to URL parser for Cloudflare Reverse Proxy bug #388

Open bulk88 opened 2 years ago

bulk88 commented 2 years ago

Read commit comments. A Cors-anywhere instance behind Cloudflare's WAF/reverse proxy, is unusable because of the "//" to "/" bug that is all over CF's technology. Why someone would use cors-anywhere on node on aws, instead of writing a Cloudflare Worker to do the same thing, when they are a cloudflare customer, is a different story. Without this patch, cors-anywhere sometimes bizarrely shows the "showUsage" page when behind Cloudflare, but works perfect connecting to AWS or localhost directly from chrome. Even if this patch isn't accepted, its a warning that CA has major problems behind CFs WAF.