Moodle mobile-error connecting to the server

Re: Moodle mobile-error connecting to the server

by Isabel Renedo -
Number of replies: 1
Picture of Moodle HQ Picture of Particularly helpful Moodlers
Hi Emrah,

Please check https://docs.moodle.org/dev/Moodle_Mobile_debugging_WS_requests#Enabling_debugging_on_your_Moodle_site, particularly to: step 6 'Setting up the debugging tool' and step 7 'Debugging a web service (WS) error'.

While inspecting you should be able to see which request is failing and what information is being sent. Please check:
  • Preview and Response tabs to check if there is any code error, and please take a screenshot of each of these tabs
  • Headers tab please copy us what's failing here. If you are unsure, please copy in here everything that is in that tab. Please do NOT include your token (wstoken) as this is sensitive information about your site

Regards,
Isabel
In reply to Isabel Renedo

Re: Moodle mobile-error connecting to the server

by Baskar Kannaiah -

Hi,

You have to create .htaccess file in your Moodle root directory. 

The below code should be there in the .htaccess file.
<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>

For more details, you can see my youtube video:-