Skip to content

Commit

Permalink
Security: Add comment about restricting JS to avoid an SVG-XSS vulner…
Browse files Browse the repository at this point in the history
…ability.
  • Loading branch information
ywarnier committed Feb 18, 2022
1 parent d6194dc commit c07b1d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/install/configuration.dist.php
Expand Up @@ -555,7 +555,9 @@
// The provided default is an *example*, please customize.
// This setting is particularly complicated to set with CKeditor, but if you
// add all domains that you want to authorize for iframes inclusion in the
// child-src statement, this example should work for you
// child-src statement, this example should work for you.
// You can prevent JavaScript from executing from external sources (including
// inside SVG images) by using a strict list in the "script-src" argument.
//$_configuration['security_content_policy'] = 'default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; child-src 'self' *.youtube.com yt.be *.vimeo.com *.slideshare.com;';
//$_configuration['security_content_policy_report_only'] = 'default-src \'self\'; script-src *://*.google.com:*';
//
Expand Down

0 comments on commit c07b1d8

Please sign in to comment.