Skip to content

Commit cc799ff

Browse files
committed
Set Referrer-Policy to strict-origin
This does not leak the referrer when going from HTTP to HTTP.
1 parent bea228d commit cc799ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
X_FRAME_OPTIONS = 'DENY'
8989

9090
# Referrer Policy
91-
SECURE_REFERRER_POLICY = 'no-referrer-when-downgrade'
91+
SECURE_REFERRER_POLICY = 'strict-origin'
9292

9393
# X-Content-Type-Options, stops browsers from trying to MIME-sniff the content type
9494
SECURE_CONTENT_TYPE_NOSNIFF = True

0 commit comments

Comments
 (0)