Skip to content

blocked by CORS policy #638

Answered by Borozenets
MSYXing asked this question in Q&A
May 31, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

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"

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@MSYXing
Comment options

@Borozenets
Comment options

Answer selected by MSYXing
@MSYXing
Comment options

@Borozenets
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants