Merge branch 'MDL-74248-master-fix_mp3_mod_folder' of https://github.com/praxisdigital/moodle
This commit is contained in:
+1
-1
@@ -286,7 +286,7 @@ function folder_pluginfile($course, $cm, $context, $filearea, $args, $forcedownl
|
||||
|
||||
// Set security posture for in-browser display.
|
||||
if (!$forcedownload) {
|
||||
header("Content-Security-Policy: default-src 'none'; img-src 'self'");
|
||||
header("Content-Security-Policy: default-src 'none'; img-src 'self'; media-src 'self'");
|
||||
}
|
||||
|
||||
// Finally send the file.
|
||||
|
||||
Reference in New Issue
Block a user