PWA, proxy, and public URL issues
Diagnose installation, mixed-origin API calls, CORS, CSP, HSTS, and streaming through a reverse proxy.
PWA install action is missing
Use the final HTTPS origin and a supported browser. Confirm the proxy serves the manifest and service worker without authentication redirects or incompatible cache headers. Localhost development is a browser-specific exception to HTTPS requirements.
Browser calls the wrong API URL
Check FRONTEND_BASE_URL, API_BASE_URL, API_INTERNAL_URL, and NEXT_PUBLIC_API_BASE_URL. Public browser configuration must use the external hostname, while internal server-to-server configuration can use the container network.
CORS error
Set CORS_ORIGINS to the exact browser origin, including scheme and non-default port. Avoid * when credentials are used. Check that the proxy is not overwriting CORS headers.
CSP blocks a feature
Read the browser console and add only the minimum required source to SECURITY_CSP_VALUE. Do not disable CSP permanently to fix a single blocked origin.
Streaming is buffered
Disable response buffering for the chat path and increase proxy read timeouts. Confirm the path streams correctly when accessed directly on the trusted internal network.
HSTS caused a lockout
HSTS is cached by browsers. Validate HTTPS before enabling it and be cautious with subdomain inclusion. Recovery may require fixing TLS on the same hostname rather than switching back to HTTP.