Skip to content

Commit

Permalink
CSP: remove obsolete block-all-mixed-content directive (#11436)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stsewd committed Jul 9, 2024
1 parent 6aaa330 commit f38c9cc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion readthedocs/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ def SESSION_COOKIE_SAMESITE(self):

# Content Security Policy
# https://django-csp.readthedocs.io/
CSP_BLOCK_ALL_MIXED_CONTENT = True
CSP_DEFAULT_SRC = None # This could be improved
CSP_FRAME_ANCESTORS = ("'none'",)
CSP_OBJECT_SRC = ("'none'",)
Expand Down

0 comments on commit f38c9cc

Please sign in to comment.