A referrer policy controls whether a browser sends the URL of the page that linked to a requested resource in the Referer HTTP header. Without an explicit value, the default behavior strips referrer information when moving from HTTPS to unsecure HTTP but preserves it in other cases. section 12.1.4
Configure the policy as an HTTP response header in Program.cs. Custom middleware adds this header alongside other security headers, while HSTS uses its own built-in middleware. Apply these headers only outside development so protections such as HSTS do not complicate localhost testing. section 12.1.4
