i need to change the value of SECURE_REFERRER_POLICY from same-origin (the default) to origin.
i set SECURE_REFERRER_POLICY = "origin" in config/settings/base.py.
local container correctly sends requests with the Referer header set to http://localhost:8000/.
production container, instead, keeps sending requests with no Referer.
What should've happened instead?
production container should send requests with the Referer header set to https://my.domain.com/.
Additional details
$ docker run --rm -it cookiecutter --version
Cookiecutter 2.1.1 from /home/user/.local/lib/python3.11/site-packages (Python 3.11.2 (main, Feb 11 2023, 12:04:10) [GCC 12.2.1 20220924])
What happened?
i need to change the value of
SECURE_REFERRER_POLICY
fromsame-origin
(the default) toorigin
. i setSECURE_REFERRER_POLICY = "origin"
inconfig/settings/base.py
. local container correctly sends requests with theReferer
header set tohttp://localhost:8000/
. production container, instead, keeps sending requests with noReferer
.What should've happened instead?
production container should send requests with the
Referer
header set tohttps://my.domain.com/
.Additional details