Superset iframe login redirect Superset iframe login redirect flask flask

Superset iframe login redirect


Assuming your app and your superset is not severed under the same domain name.

You will need to:

  1. add SESSION_COOKIE_SAMESITE = 'None' in superset_config.py
  2. make sure setup firefox is configured to not block cross-site cookies (this is not recommended but it will make embedded chart).

So the redirect from /superset/welcome to /login/ means superset can not find your session from cookie (your browser may block 3rd party cookie since superset is served as 3rd party)

If you're serving superset over HTTP instead of HTTPS, you will need SESSION_COOKIE_SECURE = False in superset_config.py as well although it's not recommended to use http only.

Notice: this solution works for Firefox and Chrome/Chromium, but not Safari.