Skip to content

Commit a0ea441

Browse files
committed
Set default Referrer Policy to no-referrer-when-downgrade
Do not send a Referrer header when the connection is downgraded from https to http. Closes: #177
1 parent acc6916 commit a0ea441

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
# Clickjacking protection
8888
X_FRAME_OPTIONS = 'DENY'
8989

90+
# Referrer Policy
91+
SECURE_REFERRER_POLICY = 'no-referrer-when-downgrade'
92+
9093
# X-Content-Type-Options, stops browsers from trying to MIME-sniff the content type
9194
SECURE_CONTENT_TYPE_NOSNIFF = True
9295

0 commit comments

Comments
 (0)