req.url resolves to the internal hostname in Docker standalone mode. Read the Host header directly so redirects and CSRF origin checks use whatever host the browser actually used (IP, hostname, or domain). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>