Skip to content

Commit

Permalink
MDL-77054 files: Allow CORS in tokenpluginfile.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Nov 30, 2023
1 parent 6374475 commit 89481f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tokenpluginfile.php
Expand Up @@ -31,6 +31,9 @@

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/')) {
Expand Down

0 comments on commit 89481f9

Please sign in to comment.