Skip to content

Commit

Permalink
Set the form-action direction in the report-only CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson committed Dec 17, 2024
1 parent 8478feb commit e920900
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 @@ -129,6 +129,7 @@
CONTENT_SECURITY_POLICY_REPORT_ONLY["DIRECTIVES"]["style-src"].remove(csp.constants.UNSAFE_INLINE)
CONTENT_SECURITY_POLICY_REPORT_ONLY["DIRECTIVES"]["upgrade-insecure-requests"] = True
CONTENT_SECURITY_POLICY_REPORT_ONLY["DIRECTIVES"]["base-uri"] = [csp.constants.NONE]
CONTENT_SECURITY_POLICY_REPORT_ONLY["DIRECTIVES"]["form-action"] = [csp.constants.SELF, f"{BASKET_URL}/news/", FXA_ENDPOINT]


# `CSP_PATH_OVERRIDES` and `CSP_PATH_OVERRIDES_REPORT_ONLY` are mainly for overriding CSP settings
Expand Down

0 comments on commit e920900

Please sign in to comment.