mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
Merge branch 'MDL-74248-MOODLE_401_STABLE-fix_mp3_mod_folder' of https://github.com/praxisdigital/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
184aa8d8ca
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user