TrustedHostMiddleware blocked Vite proxied requests (Host: localhost:5173 vs allowed_hosts list). Replaced with simple HSTSMiddleware that adds Strict-Transport-Security header without blocking any requests.
TrustedHostMiddleware blocked Vite proxied requests (Host: localhost:5173 vs allowed_hosts list). Replaced with simple HSTSMiddleware that adds Strict-Transport-Security header without blocking any requests.