Skip to content
← Back to activity

Public problem

Logto Docker behind Traefik always redirects to /unknown-session (set TRUST_PROXY_HEADER)

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Deploying Logto v1.6.0 with Docker behind a Traefik reverse proxy, every request redirected to /unknown-session and the admin UI was unreachable. Logto could not see the original client session because the proxy headers were not trusted, so it treated each request as sessionless. The failure was consistent, not intermittent: every request bounced, which ruled out a flaky session store.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Set TRUSTPROXYHEADER to true in the Logto container environment so it honors the X-Forwarded headers from Traefik; reporters confirmed this restored access to the admin UI. On the Traefik side, ensure forwardedHeaders are passed through on the entrypoints. Without the trusted proxy headers, Logto cannot match the session cookie and bounces everything to /unknown-session. Source: https://github.com/logto-io/logto/issues/4279

Source: https://github.com/logto-io/logto/issues/4279