Login redirection does not use subpath prefix #40082
Replies: 1 comment 48 replies
|
Hi @thiagogquinto! I'm Dosu and I’m helping the superset team. This is a known bug in Superset where post-login redirects don't respect In addition to setting In your ENABLE_PROXY_FIX = True
PROXY_FIX_CONFIG = {"x_for": 1, "x_proto": 1, "x_host": 1, "x_port": 1, "x_prefix": 1}In your Traefik labels, add a middleware to set the forwarded prefix header: - "traefik.http.middlewares.superset-prefix.headers.customrequestheaders.X-Forwarded-Prefix=/analytics"
- "traefik.http.routers.superset.middlewares=superset-prefix"Also make sure your Traefik configuration strips the - "traefik.http.middlewares.superset-strip.stripprefix.prefixes=/analytics"
- "traefik.http.routers.superset.middlewares=superset-strip,superset-prefix"Key points:
What version of Superset are you running? If you're on 6.1+ and still seeing this issue, there may be additional configuration needed. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am using Traefik as a proxy for Superset, and I want to access the Superset app through the
/analyticssubpath.I set the following environment variable:
SUPERSET_APP_ROOT="/analytics"I can access Superset using the
/analyticssubpath, but after logging in, I am redirected to:However, the correct URL should be:
What configurations should I add or change?
Below are the labels I am using for Superset:
All reactions