CORS allowed-origins not applied for Azure VM public IP
I’ve deployed Probo on an Azure VM (public IP) and configured CORS origins, but requests from my frontend are still blocked. Nginx on the same VM responds correctly on port 8080, so networking is fine it appears the CORS headers aren’t being sent.
probod:
api:
cors:
allowed-origins:
- "http://localhost:8080"
- "http://localhost:5173"
- "http://PUBLIC_IP:8080" # public IP added here
aws:
access-key-id: "probod"
secret-access-key: "thisisnotasecret"
endpoint: "http://127.0.0.1:9000"
openai:
api-key: "thisisnotasecret"
temperature: 0.1
model-name: "gpt-4o"
I’ve confirmed that the root cause was Probo only listening on localhost. I’ve updated the API listen address to 0.0.0.0:8080 so it now binds on all interfaces. After redeploying with that change, external requests to http://PUBLIC_IP:8080 succeed and the CORS headers are correctly applied.
I’ve updated the API listen address to
0.0.0.0:8080so it now binds on all interfaces.
Where did you update this please? I've got the registration pages to work, login page can correctly return an incorrect login, but getting unauthorized errors on a successful login.
I've gone the quick path of using socat to redirect port 8081 externally to 8080 internally
Thanks
We just release a documentation for the confuguration file: https://github.com/getprobo/probo/blob/main/docs/CONFIGURATION.md
Let us know if help you to fix the issue you got.
I’ve updated the API listen address to
0.0.0.0:8080so it now binds on all interfaces.Where did you update this please? I've got the registration pages to work, login page can correctly return an incorrect login, but getting unauthorized errors on a successful login.
I've gone the quick path of using socat to redirect port 8081 externally to 8080 internally
Thanks
It seams you error comes from bad configuration of the session cookie