Denied access on 2021.1.0

Posted on
Sat Jun 19, 2021 12:24 am
davinci offline

Denied access on 2021.1.0

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.
Last edited by davinci on Sat Jun 19, 2021 3:01 am, edited 1 time in total.

Posted on
Sat Jun 19, 2021 1:52 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Denied access on 2021.1.0

Have you removed your reflector name from that URL? Otherwise it’s wrong?


Sent from my iPhone using Tapatalk Pro

Posted on
Sat Jun 19, 2021 2:53 am
davinci offline

Re: Denied access on 2021.1.0

No, I just replaced the port and username.

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

Posted on
Sat Jun 19, 2021 2:26 pm
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Denied access on 2021.1.0

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?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Jun 19, 2021 5:23 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Denied access on 2021.1.0

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.

Image

Posted on
Sun Jun 20, 2021 3:17 am
davinci offline

Re: Denied access on 2021.1.0

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?

Posted on
Sun Jun 20, 2021 1:59 pm
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Denied access on 2021.1.0

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.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest

cron