Skip to content

Commit f38c9cc

Browse files
authored
CSP: remove obsolete block-all-mixed-content directive (#11436)
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/block-all-mixed-content > This directive is marked as obsolete in the specification. This > directive was previously used to prevent "optionally blockable" mixed > content from being fetched insecurely and displayed. Content that isn't > blocked is now always upgraded to a secure connection, so this directive > is not needed.
1 parent 6aaa330 commit f38c9cc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

readthedocs/settings/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ def SESSION_COOKIE_SAMESITE(self):
125125

126126
# Content Security Policy
127127
# https://django-csp.readthedocs.io/
128-
CSP_BLOCK_ALL_MIXED_CONTENT = True
129128
CSP_DEFAULT_SRC = None # This could be improved
130129
CSP_FRAME_ANCESTORS = ("'none'",)
131130
CSP_OBJECT_SRC = ("'none'",)

0 commit comments

Comments
 (0)