|
xhr.setRequestHeader("Authorization", "Basic " + btoa("demo:demo")); |
Problem
- The code at line 135 of
/web/static/js/index.js disables HTTP basic authentication.
- Consequently, the following three configuration options stop working as expected:
http_auth
http_login
http_password
Root Cause
The logic on line 135 forcibly overrides or bypasses the HTTP authentication settings, causing the authentication mechanism to fail.
Solution
Two possible fixes:
- Quick fix: Comment out line 135.
- More robust fix: Wrap line 135 with a condition to execute only when HTTP authentication is not required (i.e.,
http_auth is not true).
RTSPtoWeb/web/static/js/index.js
Line 135 in a7e95fc
Problem
/web/static/js/index.jsdisables HTTP basic authentication.http_authhttp_loginhttp_passwordRoot Cause
The logic on line 135 forcibly overrides or bypasses the HTTP authentication settings, causing the authentication mechanism to fail.
Solution
Two possible fixes:
http_authis nottrue).