Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
4d49a32
)
Merge branch 'MDL-51588-master' of git://github.com/FMCorz/moodle
author
Dan Poltawski
<dan@moodle.com>
Tue, 6 Oct 2015 10:41:01 +0000
(11:41 +0100)
committer
Dan Poltawski
<dan@moodle.com>
Tue, 6 Oct 2015 15:31:36 +0000
(16:31 +0100)
webservice/pluginfile.php
patch
|
blob
|
blame
|
history
diff --git
a/webservice/pluginfile.php
b/webservice/pluginfile.php
index
f49480f
..
2d3cdad
100644
(file)
--- a/
webservice/pluginfile.php
+++ b/
webservice/pluginfile.php
@@
-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();