mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-77054 files: Allow CORS in tokenpluginfile.php
This commit is contained in:
parent
6374475dc3
commit
89481f9405
@ -31,6 +31,9 @@ define('NO_DEBUG_DISPLAY', true);
|
||||
|
||||
require_once('config.php');
|
||||
|
||||
// Allow CORS requests.
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
|
||||
$relativepath = get_file_argument();
|
||||
$token = optional_param('token', '', PARAM_ALPHANUM);
|
||||
if (0 == strpos($relativepath, '/token/')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user