-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't send json.htm by HTTP #6064
Comments
You still have to sent a Basic authorization header even over http. Or (more unsafe) add the IP address of the client to the 'Trusted network' list. BTW. Best to ask these questions on the forum. |
Yes. I didn't remove header with basic auth. ps This is not question I think. |
You can start Domoticz with some additional debug parameters that will show exactly what is going on. See the forum for details. BTW. Remove the trusted network list as it might be interfering. Make sure the Users are setup correctly. |
Run with the debug flags and see what is really going on. You might have an active session cookie somewhere, using a proxy, etc. |
Today I add logging: and after restart I have the first situation again (allow basic auth checked and get 401):
I also checked Database, and AllowPlainBasicAuth = 1 And after another restart now is working
|
I'm not sure, but when server starting we have
and it used servercollection but when I change in settigns "Allow HTTP", is calling |
Please check if you are changing the settings over HTTP or HTTPS when testing without restarting. |
When I change settings without restaring nothing changes in API authorization behavior (but this option changed in database). |
If you think you found a bug, please report how to consistently reproduce the problem so we can reproduce it as well and try to fix the problem. |
In my opinion, this line do nothing: domoticz/main/WebServerCmds.cpp Line 2583 in 0043123
|
Are you doing step 5 through the UI over HTTP or HTTPS? |
Try changing the setting over HTTP when performing these steps. |
For HTTP works ok. |
I can send something like
https://192.168.1.2/json.htm?type=command¶m=udevice&idx=164&nvalue=0&svalue=12
and of course, in header I have
Authorization: Basic xxx
Bu when I try send it by HTTP
http://192.168.1.2:8080/json.htm?type=command¶m=udevice&idx=164&nvalue=0&svalue=12
I always get 401 - unauthorized
ps. have enabled also "Allow Basic-Auth authentication over plain HTTP (API only)."
The text was updated successfully, but these errors were encountered: