blocked by CORS policy #638
-
On version 0.5, I tried running this command (docker-compose -f deploy/docker-compose.yml --project-directory . up --build) and it showed that it was started, but the request (http://localhost:3000/api/agent/start) showed cross-domain problems, and then I added this link(https://cors-anywhere.herokuapp.com/http://localhost:3000/api/agent/start) to fix it, but now 403 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @MSYXing |
Beta Was this translation helpful? Give feedback.
I tested on my Raspberry Pi, and in my case I don't need security as a test. My domain for the PI test, as an example http://pi:3000
An example of my configs:
.env
root@pi:~/AgentGPT# cat next/.env | grep http://pi
NEXT_PUBLIC_BACKEND_URL="http://pi:8000"
NEXTAUTH_URL="http://pi:3000"
REWORKD_PLATFORM_FRONTEND_URL="http://pi:3000"
settings.py
root@pi:~/AgentGPT# cat ../AgentGPT/platform/reworkd_platform/settings.py | grep http://pi
frontend_url: str = "http://192.168.1.35:3000,http://localhost,http://localhost:3000,http://pi:3000,http://pi"