I'm using the HTML Iframe component to display a web page inside my current website. The entire layout is mainly built based on Dash bootstrap but I also used a few HTML components like this:
dbc.ModalBody(
children=[
html.Iframe(
id="show_web",
src="https://www.google.com/",
style={
"width": "100%",
"height": "50vh",
"margin-bottom": "10px",
},
]
),
I'd like to create a modal (popup window) that displays a given website URL once users click on the button connected to the modal. As an example, I used the google website above but if I run the code, it throws an error that says "Google.com refused to connect."
How do I resolve this issue?
Thanks.