HTTPS hearders but HTTP URL in FastAPI and Cloud Run
I created a FastAPI app and I can access the Swagger UI autodocs at https://cloudrundomain.app/docs
. When I send an HTTPS request using the Swagger UI, the request.headers.get("X-Forwarded-Proto")
is HTTPS, but the request.url
is http://cloudrundomain
(the bottom of my problem is that HTTPException
is HTTP, but I think it starts there).