1👍
✅
You can set the referrer policy in your applications settings.py
(or equivilant).
SECURE_REFERRER_POLICY¶
Default: ‘same-origin’
If configured, the SecurityMiddleware sets the Referrer Policy header on all responses that do not already have it to the value provided.
So if you set the following you should get the result you are looking for.
SECURE_REFERRER_POLICY = 'origin'
More information on the referrer policy can be found here: https://docs.djangoproject.com/en/5.0/ref/middleware/#referrer-policy
Source:stackexchange.com