Temporarily unset `SERVER_NAME` when handling requests
Because otherwise, flask.url_for()
will always prefer the value of SERVER_NAME
over the HTTP Host
header value.
While this may be desirable for security reasons for single-domain setups, it causes issues with OIDC (generating absolute redirect URIs) on secondary domains of our multi-domain setup.
Merge request reports
Activity
Filter activity
Please register or sign in to reply