probo icon indicating copy to clipboard operation
probo copied to clipboard

CORS allowed-origins not applied for Azure VM public IP

Open ishu-harsh opened this issue 1 year ago • 4 comments

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"

ishu-harsh avatar Jul 15 '25 22:07 ishu-harsh

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.

ishu-harsh avatar Jul 15 '25 23:07 ishu-harsh

I’ve updated the API listen address to 0.0.0.0:8080 so 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

AKonCloud avatar Jul 22 '25 06:07 AKonCloud

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.

gearnode avatar Aug 15 '25 06:08 gearnode

I’ve updated the API listen address to 0.0.0.0:8080 so 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

gearnode avatar Aug 15 '25 06:08 gearnode