mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-51588 webservice: Allow CORS in webservice/pluginfile.php
This commit is contained in:
parent
fd57d685c7
commit
3665f8036c
@ -38,6 +38,9 @@ require_once(dirname(dirname(__FILE__)) . '/config.php');
|
||||
require_once($CFG->libdir . '/filelib.php');
|
||||
require_once($CFG->dirroot . '/webservice/lib.php');
|
||||
|
||||
// Allow CORS requests.
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
|
||||
//authenticate the user
|
||||
$token = required_param('token', PARAM_ALPHANUM);
|
||||
$webservicelib = new webservice();
|
||||
|
Loading…
x
Reference in New Issue
Block a user