According to the new changes in the Streamlit URL formatting, any public Streamlit link can still be used in iframe by adding embedded=true as a parameter to the embedded URL. This works when there is only one parameter embedded=true is being added to the URL. However, with adding additional parameters to the URL like ?someparam=value&embedded=true will eventually lead to “… redirected you too many times” error.
Leave the page open and visible for at least 5 minutes or more. (in the Network tab you can notice calls to ... api/v1/app/status every 2 seconds)
Upon /api/v1/app/status or /api/v1/app/context returning any failure response, notice the page gets refreshed by redirecting the call through: https://share.streamlit.io/-/auth/app?redirect_uri=https%3A%2F%2Fstreamlit-example-app-ab-testing-streamlit-app-rmlvff.streamlitapp.com%2F%3Fsomeparam%3Dvalue&embedded=true
Next cals the https://streamlit-example-app-ab-testing-streamlit-app-rmlvff.streamlitapp.com/-/login?payload=…
Finally, returns back to the Streamlit app link: https://streamlit-example-app-ab-testing-streamlit-app-rmlvff.streamlitapp.com/?someparam=value but with missing embedded=true.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.