In a CF Worker I get
In Chrome 83 console I get
Notice Chrome passes through the //, CF Worker V8 drops the // to a single / changing the path given to the actual API origin end point. Huh?Both the browser and a CFW are V8 JS Engine right?
I do see the warning at https://developers.cloudflare.com/workers/runtime-apis/web-standards but there needs to be documentation how CFW URL objects are different from W3C URL objects. Its a landmine if a CFW URL object retrieves a different file on origin than in a fake CFW/mockup on a devs machine with Node JS or Chrome console under a certain input.
Just add this to any CFW and look at the header
only 1 / in pathname