Skip to content

A platform for community discussion. Free, open, simple.

UX: Add CSP documentation link to content_security_policy_script_src setting

tshenry9caec39aefb8
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index 2945673db6a..2b68faed6d9 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -1494,7 +1494,7 @@ en:
content_security_policy: "Enable Content-Security-Policy"
content_security_policy_report_only: "Enable Content-Security-Policy-Report-Only"
content_security_policy_collect_reports: "Enable CSP violation report collection at /csp_reports"
- content_security_policy_script_src: "Additional whitelisted script sources. The current host and CDN are included by default."
+ content_security_policy_script_src: "Additional whitelisted script sources. The current host and CDN are included by default. See <a href='https://meta.discourse.org/t/mitigate-xss-attacks-with-content-security-policy/104243' target='_blank'>Mitigate XSS Attacks with Content Security Policy.</a>"
invalidate_inactive_admin_email_after_days: "Admin accounts that have not visited the site in this number of days will need to re-validate their email address before logging in. Set to 0 to disable."
top_menu: "Determine which items appear in the homepage navigation, and in what order. Example latest|new|unread|categories|top|read|posted|bookmarks"
post_menu: "Determine which items appear on the post menu, and in what order. Example like|edit|flag|delete|share|bookmark|reply"