Cloudflare effecting GET requests to nginx and my Node.js server?

is the code in my example not working? (it’s what I use on live behing a nginx proxy)

This should point you in the right direction.
Depending on your NGINX and Cloudflare config, there might not be a X-Forwarded-For

app.use(req,res,next) => {
    console.log(req.headers);
    next();
});