Skip to content

Commit

Permalink
Restrict CSP even more (tighten report-only object-src)
Browse files Browse the repository at this point in the history
  • Loading branch information
janbrasna authored Nov 10, 2024
1 parent cd28718 commit ab3e5b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bedrock/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@

# CSP directive updates we're testing that we hope to move to the enforced policy.
CONTENT_SECURITY_POLICY_REPORT_ONLY["DIRECTIVES"]["default-src"] = [csp.constants.SELF]
CONTENT_SECURITY_POLICY_REPORT_ONLY["DIRECTIVES"]["object-src"] = [csp.constants.NONE]
CONTENT_SECURITY_POLICY_REPORT_ONLY["DIRECTIVES"]["frame-ancestors"] = [csp.constants.NONE]
CONTENT_SECURITY_POLICY_REPORT_ONLY["DIRECTIVES"]["style-src"].remove(csp.constants.UNSAFE_INLINE)

Expand Down

0 comments on commit ab3e5b2

Please sign in to comment.