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 and robhudson committed Nov 21, 2024
1 parent 0d43d4c commit 6a99e0e
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 6a99e0e

Please sign in to comment.