Moodle for mobile

Moodle Mobil NO Conect on Android

 
Picture of Dani Palou
Re: Moodle Mobil NO Conect on Android
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi Gregorio,

I tried to connect using the app in an Android and a MacOS device and I'm receiving a 403 error (Forbidden) in both cases:

Forbidden

You don't have permission to access /login/token.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Is it possible that your server is blocking the requests when they come from the Mobile app? Maybe it blocks all the requests with origin "file://"?

Here is the request data from the Android app:

General

Request URL:https://www.rhemauniversidad.com/login/token.php

Request Method:POST

Status Code:403 

Remote Address:IP:443

Referrer Policy:no-referrer-when-downgrade


Response Headers

content-encoding:gzip

content-type:text/html; charset=iso-8859-1

date:Wed, 03 Jan 2018 14:49:07 GMT

server:nginx

status:403

vary:Accept-Encoding


Request Headers

:authority:www.rhemauniversidad.com

:method:POST

:path:/login/token.php

:scheme:https

accept:application/json, text/plain, */*

accept-encoding:gzip, deflate

accept-language:en-US,es-ES;q=0.9

content-length:0

content-type:application/x-www-form-urlencoded;charset=UTF-8

origin:file://

user-agent:Mozilla/5.0 (Linux; Android 7.0; FRD-L09 Build/HUAWEIFRD-L09; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36 MoodleMobile

x-devtools-emulate-network-conditions-client-idsad2A8D4AAA6D45476443545B9905667CE1)

x-requested-with:com.moodle.moodlemobile

And here's the request data from the MacOS Desktop app:

General

Request URL:https://www.rhemauniversidad.com/login/token.php

Request Method:POST

Status Code:403 

Remote Address:IP:443


Response Headers

content-encoding:gzip

content-type:text/html; charset=iso-8859-1

date:Wed, 03 Jan 2018 15:02:58 GMT

server:nginx

status:403

vary:Accept-Encoding


Request Headers

:authority:www.rhemauniversidad.com

:method:POST

:path:/login/token.php

:scheme:https

accept:application/json, text/plain, */*

accept-encoding:gzip, deflate

accept-language:en-GB

content-length:31

content-type:application/x-www-form-urlencoded;charset=UTF-8

origin:file://

user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) moodlemobile/3.4.0 Chrome/56.0.2924.87 Electron/1.6.10 Safari/537.36


Form Data

username:a

password:b

service:c


Kind regards,

Dani

 
Average of ratings: -