Error Connecting to the Server

Re: Error Connecting to the Server

by Johnny Tsheke -
Number of replies: 1

Hi,

I'am getting the same error on  moodle desktop 3.7.2 as well as with Android  app 3.8.2 and  moodle 3.5 and

I can login login on the apps. When I clic on "Available courses":

  • I get "Error connecting to the server" if I'm using the app with an ordinary user account
  • Everything works fine when I'm using the app with an administrator account.
  • I tried with local account as well as with an LDAP account and still getting the same result.


So, how to fix that?


Thanks a lot.

In reply to Johnny Tsheke

Re: Error Connecting to the Server

by Baskar Kannaiah -

Hi,

You have 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:-