Components.iframe() ...if the website has username and password

Hello everybody!

So far I have been using

components.iframe("https://docs.streamlit.io/en/latest")

just fine, but now I would like to use it to get into the iframe a website with username and password… is there a way to do that?
Cheers!

What happens if you do it the same way?

A pop up window asking for a password for xyz.com website arrives, but I don’t want the user knows the password, actually I don’t even want the user knows the website where the iframe comes from :zipper_mouth_face:

Perhaps there’s something like:

components.iframe("https://username:password@docs.streamlit.io/en/latest")

that I can use on the code.
I have tried exactly that, but instead the iframe there’s a blank space, and no pop up window to ask for username and password.

That is up to the owners of xyz.com and you will have to ask them. Not every site provides a way to authenticate without direct user interaction, and those that do have different ways.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.