mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-47545 web services: Allow cross origin requests
This commit is contained in:
parent
8950e7f535
commit
5e28991e78
1 changed files with 1 additions and 0 deletions
|
@ -184,6 +184,7 @@ class webservice_rest_server extends webservice_base_server {
|
||||||
header('Expires: '. gmdate('D, d M Y H:i:s', 0) .' GMT');
|
header('Expires: '. gmdate('D, d M Y H:i:s', 0) .' GMT');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
header('Accept-Ranges: none');
|
header('Accept-Ranges: none');
|
||||||
|
header('Access-Control-Allow-Origin: *');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue