Files
orion/main.py
Samir Boulahtit af3f04a23f
Some checks failed
CI / ruff (push) Failing after 7s
CI / dependency-scanning (push) Successful in 27s
CI / audit (push) Successful in 8s
CI / docs (push) Has been skipped
CI / pytest (push) Failing after 22s
CI / architecture (push) Failing after 9s
fix(deploy): add ProxyHeadersMiddleware for HTTPS behind Caddy
Caddy proxies HTTPS requests to FastAPI as HTTP on localhost:8001.
Without ProxyHeadersMiddleware, request.scheme stays "http" and
url_for() generates http:// URLs, causing mixed content blocking.

The middleware reads X-Forwarded-Proto from Caddy and sets the
correct scheme so all generated URLs use https://.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 23:51:29 +01:00

21 KiB