Agent zero requests me to set the username and password -- but doesn't provide me with a means to do so
I am running Agent 0 within my Intranet. Unfortunately, when I attempt to access it, I get a message box with the following connection error message:
Origin http://192.168.2.100:3000 not allowed when login is
disabled. Set login and password or add your URL to
ALLOWED_ORIGINS env variable. Currently allowed origins:
*://localhost:*,*://127.0.0.1:*,*://0.0.0.0:*
I don't mind requiring enabled login and authentication credentials -- except that the system doesn't allow me to set them!
According to your documentation, I can add a username and password using the Settings → Authentication → Set username and password for web interface access. The problem is that when I click on Settings, I get the same connection error.
Interestingly enough, I did set the environment variable ALLOWED_ORIGINS to my IP address. Now, however, I am getting the following connection error:
Origin http://192.168.2.100:3000 not allowed when login is
disabled. Set login and password or add your URL to
ALLOWED_ORIGINS env variable. Currently allowed origins:
192.168.2.100:3000
Obviously, there is either another way to set up an Agent 0 instance so that I can start it up with login enabled, or your system has a bug in it that does not allow anyone to access it when using other than localhost.
Of course, I could start it up from localhost -- except that I am running it on a Zimablade that is running Ubuntu server -- not exactly an environment where I can actually use a browser on localhost!
Can someone tell me how I can access this application so that I can actually enable the login and put in some credentials???
https://github.com/agent0ai/agent-zero/issues/832
Closing due to inactivity of 90 days.
Still happening in v2.7. Even after setting in in env.
Still happening in v2.7. Even after setting in in env.
I managed to get around it by doing this: docker stop agent-zero2 && docker rm agent-zero2
docker run -d -p 20000:80 --name agent-zero2
-v a0_v2_usr:/a0/usr
-e ALLOWED_ORIGINS="http://IP-ADDRESS-THAT-NEEDS-TOBE-ADDED:20000"
agent0ai/agent-zero:latest
then I used http://localhost:20000