Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.8.3, 3.9
-
None
-
MOODLE_38_STABLE, MOODLE_39_STABLE
Description
Tested on https://school.moodledemo.net and the latest 3.9 moodle app.
With the latest update to the Moodle app it now respects CORS headers, these are sent on web service requests but not on the requests made under admin/tool/mobile/ directory and /lib/ajax/service.php file.
Here's an example:
07-06 08:35:49.398 14884 14884 D SystemWebChromeClient: http://localhost/: Line 0 : Access to XMLHttpRequest at 'https://school.moodledemo.net/lib/ajax/service.php?info=tool_mobile_get_public_config' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
|
Steps to reproduce:
- Download official moodle app
- Connect to device with adb logcat
- Configure site to be school.moodledemo.net
- Close and reopen app
- Look in logcat to see failing requests
Attachments
Issue Links
- will be (partly) resolved by
-
MOBILE-4294 Use native HTTP requests
-
- Open
-