Merge branch 'MDL-50107-master' of git://github.com/jleyva/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2015-06-17 00:16:18 +02:00
commit 51a09cb43e

View File

@ -31,6 +31,8 @@ $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) {