server – nginx doesn't provide HTTP referer / referrer – Ask Ubuntu

I have both a PHP installation and a Bun installation on my NGINX. In both cases, it appears with Ubuntu 24.04 default NGINX that the HTTP referer / referrer is not set. In my Bun configuration, I have:

proxy_set_header Referer $http_referer;

In my PHP configuration, I have:

fastcgi_param HTTP_REFERER $http_referer;

When I do a redirect in both my PHP subdomain and my Bun subdomain, when I try to show the headers whether it’s by Curl command line, Chrome developer tools, or via code — all show an empty referer.

I am running nginx version: nginx/1.27.4

What is the issue?

Read more here: Source link