pydantic / FastUI

Build better UIs faster.
https://fastui-demo.onrender.com
MIT License
8.29k stars 320 forks source link

blocked: mixed-content / CORS errors #194

Open geuben opened 9 months ago

geuben commented 9 months ago

Screenshot 2024-02-14 at 23 33 09

blocked: mixed content or CORS request errors (if I allow insecure content)

I updated from version 0.4 and I'm now seeing errors when I deploy to my K8S cluster. Everything works locally on http but not via https when deployed.

Did something change in the way the UI parts call the API parts?

geuben commented 9 months ago

I managed to solve this with some additional uvicorn parameters --proxy-headers --forwarded-allow-ips

it's related to a starlette issue: https://github.com/encode/starlette/issues/538