by Ben Kahn.
Sorry, I should add I'm using Moodle 3.6 and token authentication.... I can take the same query on a test site like:
mysite.com/moodle/webservice/rest/server.php?wstoken=tokenhere&wsfunction=core_course_get_courses&moodlewsrestformat=json
and it works fine on a test site, but not on my production or staging sites...
mysite.com/moodle/webservice/rest/server.php?wstoken=tokenhere&wsfunction=core_course_get_courses&moodlewsrestformat=json
and it works fine on a test site, but not on my production or staging sites...