Skip to content

Commit 986b6ec

Browse files
committed
Remove django-referrer-policy dependency
1 parent 6874a46 commit 986b6ec

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

poetry.lock

Lines changed: 1 addition & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ django-pattern-library = "^1.3.0"
2222
django-permissions-policy = "^4.22.0"
2323
django-phonenumber-field = "^8.0.0"
2424
django-redis = "^5.4.0"
25-
django-referrer-policy = "~1.0"
2625
django-storages = {version = "^1.14.4", extras = ["boto3"]}
2726
dj-database-url = "^2.3.0"
2827

tbx/settings/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@
424424
# https://docs.djangoproject.com/en/stable/ref/settings/#secure-content-type-nosniff
425425
SECURE_CONTENT_TYPE_NOSNIFF = True
426426

427+
# https://docs.djangoproject.com/en/stable/ref/middleware/#referrer-policy
428+
SECURE_REFERRER_POLICY = env.get(
429+
"SECURE_REFERRER_POLICY", "no-referrer-when-downgrade"
430+
).strip()
427431

428432
# Content Security policy settings
429433
# http://django-csp.readthedocs.io/en/latest/configuration.html

0 commit comments

Comments
 (0)