Page 1 of 1

Denied access on 2021.1.0

PostPosted: Sat Jun 19, 2021 12:24 am
by davinci
I get this message:
Code: Select all
   Web Server                      access denied "http://indigodomo.net:PORT/variables/UpdateIndigo.json" from username @ 127.0.0.1


This is requested by a WebApp from me. Worked before.

Edit: Using M1.

Re: Denied access on 2021.1.0

PostPosted: Sat Jun 19, 2021 1:52 am
by howartp
Have you removed your reflector name from that URL? Otherwise it’s wrong?


Sent from my iPhone using Tapatalk Pro

Re: Denied access on 2021.1.0

PostPosted: Sat Jun 19, 2021 2:53 am
by davinci
No, I just replaced the port and username.

In the settings it shows as active with the correct url.

Re: Denied access on 2021.1.0

PostPosted: Sat Jun 19, 2021 2:26 pm
by jay (support)
davinci wrote:
This is requested by a WebApp from me.


Can you explain more what this means? Can you hit your reflector directly in a web browser?

Re: Denied access on 2021.1.0

PostPosted: Sat Jun 19, 2021 5:23 pm
by matt (support)
Also, what type of authentication does your WebApp expect: HTTP Digest or Basic? If the latter, did you enable the option in the Start Local Server dialog for HTTP Basic authentication? If it uses Digest then try turning off Basic authentication in the settings if it is enabled.

Re: Denied access on 2021.1.0

PostPosted: Sun Jun 20, 2021 3:17 am
by davinci
I am using Apache Cordova - not a native WebApp, sorry.

Code: Select all
var header = cordova.plugin.http.getBasicAuthHeader(user, password);


I enabled the option for now (which is less secure). What is the recommended way though?
What are the risks of BasicAuth?

Re: Denied access on 2021.1.0

PostPosted: Sun Jun 20, 2021 1:59 pm
by jay (support)
HTTP Basic auth sends the username/password in the clear. If you're using HTTPS then it's somewhat secure. HTTP Digest doesn't send the username/password, so it's more secure.

If you can set headers before sending the request, I'd highly recommend using an API Key in the Authorization header instead. That way you can revoke the key if it becomes compromised as opposed to changing the password in all the places where you might use them.