Merge branch 'MDL-74248-master-fix_mp3_mod_folder' of https://github.com/praxisdigital/moodle

This commit is contained in:
Ilya Tregubov
2023-12-06 10:00:26 +08:00
+1 -1
View File
@@ -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.