-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Automatically set API base_url to a good value so UI is reachable locally #49013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically set API base_url to a good value so UI is reachable locally #49013
Conversation
1fe0297 to
ed9adac
Compare
|
I pushed a couple of changes -- (not tests yet, sorry) -- this was enough to get it working locally under any name I could reach in the browser, localhost, 127.0.0.1, and |
pierrejeambrun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
A couple more tests need fixing and we should be good to go. |
Whatever URL the browser made the request on obviously works, so lets use that for the base url in our templates, rather than what ever is hard-coded in the config.
This also adjusts `is_safe_url` so that it validates against wither the configure base_url, or against the incoming base URL -- either one is allowed.
6020625 to
7fa0eba
Compare
7fa0eba to
6b3fc59
Compare
|
This introduced a bug when running Airflow with Breeze, it redirects the user to |


closes: #48825
This need additional work: