Embed iframe to my website

Hello everyone, i have successfully deployed my web application but when i try to embed it to my actual website to showcase it, I get an error “streamlit redirected you too many times” I get this usually after 15 minutes of not doing anything.

This is the url : https://yearly-symbol-prices.streamlit.app/

This is the iframe:

This is the error here:

Append the embed argument to the end of your url: https://yearly-symbol-prices.streamlit.app/?embed=True

2 Likes

Thanks I tried it but still after around 15-20 minutes of being still I get the same grey box with the same error.

This is how my iframe code looks now :

Hi @Aris_Shokri :wave:

Could you try using /?embedded=true instead? For Community Cloud apps, you should use embedded instead of embed:

1 Like

Than you @snehankekre . It seems to be better now, I don’t get this grey error box but I get this now after like 20 minutes of inactivity, very weird:

This is my iframe code:

I tried using both <frame> and <iframe>. I tried using both ?embed=true and ?embedded=true. I double-checked with a capital T on True for both as well; seems the Debian (case-sensitive Linux) system is looking for a lowercase t for the record. embed will hide the hamburger menu; embedded will keep the hamburger menu.

The page loads fine in edge and Chrome, but not in Firefox specifically. The <frame> option is prettier without the border that is shown by default with <iframe>.

With hidden hamburger menu:

<html>
<head>
    <title>Yearly Symbol Prices</title>
</head>
<frameset>
    <frame src='https://yearly-symbol-prices.streamlit.app/?embed=true'>
</frameset>
</html>

With visible hamburger menu:

<html>
<head>
    <title>Yearly Symbol Prices</title>
</head>
<frameset>
    <frame src='https://yearly-symbol-prices.streamlit.app/?embedded=true'>
</frameset>
</html>

I checked a private window in Firefox and it still had a problem loading the <frame> and <iframe>. I’m not sure what’s up with specifically Firefox, but my guess is that it has to do with security in some way.

Thanks @mathcatsand I tried this:

Yearly Symbol Prices

Will make some test and hopefully after inactivity won’t get an error on my wix website. Thanks again

hi i tried your code in my wordpress and it did not work, do you have any other answers

hey u got the ans?