Pattern
Redirect and Scheme Mismatch
redirect-scheme-routing-mismatch
Scheme and routing signals (HTTP vs HTTPS, '/' vs '/api', proxied Location) get misinterpreted across Cloudflare/Apache/proxy and FastAPI/Next/Vite, causing browsers to bounce redirects or forward everything to the wrong backend until timeouts or redirect limits occur.