mirror of
https://github.com/Dasemu/remote-mcp-manager.git
synced 2026-11-28 08:17:26 +00:00
cookie.secure was tied to NODE_ENV=production instead of whether the request actually arrived over HTTPS, so in a production build the admin login cookie was never stored at all when accessed over plain HTTP (e.g. direct container access, or a proxy that doesn't terminate TLS in front of the admin panel) — confirmed while deploying to production, login returned 200 but no session persisted. "auto" uses req.secure via the existing trust-proxy setting instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>