mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 20:06:46 +02:00
Merge branch 'MDL-52902-30' of git://github.com/jleyva/moodle into MOODLE_30_STABLE
This commit is contained in:
commit
5ed3f867eb
1 changed files with 3 additions and 2 deletions
|
@ -27,12 +27,13 @@ define('NO_MOODLE_COOKIES', true);
|
|||
|
||||
require_once(dirname(dirname(__FILE__)) . '/config.php');
|
||||
|
||||
// Allow CORS requests.
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
|
||||
$username = required_param('username', PARAM_USERNAME);
|
||||
$password = required_param('password', PARAM_RAW);
|
||||
$serviceshortname = required_param('service', PARAM_ALPHANUMEXT);
|
||||
|
||||
// Allow CORS requests.
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
echo $OUTPUT->header();
|
||||
|
||||
if (!$CFG->enablewebservices) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue