Merge branch 'MDL-84313-main' of https://github.com/dpalou/moodle

This commit is contained in:
Sara Arjona
2025-03-10 11:35:37 +01:00
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -33,6 +33,8 @@ require_once('config.php');
// Allow CORS requests.
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: range');
header('Access-Control-Expose-Headers: Content-Range');
$relativepath = get_file_argument();
$token = optional_param('token', '', PARAM_ALPHANUM);
+2
View File
@@ -40,6 +40,8 @@ require_once($CFG->dirroot . '/webservice/lib.php');
// Allow CORS requests.
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: range');
header('Access-Control-Expose-Headers: Content-Range');
// Authenticate the user.
$token = required_param('token', PARAM_ALPHANUM);