Change dash_auth.BasicAuth() login popup text

I’d like to change the part in the popup where it says “http://127.0.0.1:8050” to a custom string, f.ex “www.abc.com”.
Been trying to figure this one out for a while so appreciate any help.

Adding sample code.

import dash
import dash_auth
import dash_html_components as html

VALID_USERNAME_PASSWORD_PAIRS = [
    ['hello', 'world']
]

external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']

app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
auth = dash_auth.BasicAuth(
app,
VALID_USERNAME_PASSWORD_PAIRS
)

app.layout = html.Div([
    html.H1('Welcome to the app')
])

if __name__ == '__main__':
    app.run_server(debug=True)

the login prompt/dialog is a response built into the user-agent/browser and cannot be changed by the server.
Thread can be closed.

1 Like