I have an issue with hosting streamlit apps as iframes on custom domain through Github pages. Sometimes browsers who disabled iframes will not be able to view the website. Sometimes, computers running on closed WiFi (school/office) cannot open the website.
If it is share.streamlit.com links it will open up fine. Only when it is iframed within a custom domain when there is a problem. Is there a way to fix this while keeping the customized URL?
In both of these cases, I’m not sure there is a solution. If the browser disables iframes, then that is a local setting. Computers on restricted wifi may be using filtering software or have an allow-list; in this case, again, there’s nothing that’s possible to solve this from Streamlit.
Well, if it is just the share.streamlit.io link the app would work fine. It is only when I’m trying to use a custom domain with the iframe setup that causes problems. I guess the question I’m going for is: Is there a way for me to give my streamlit app a custom domain without using the iframe method?
We are working on subdomains per app right now (see here in our roadmap app), which will be a precursor for completely custom domains!
So, for this moment, there is not much options that don’t use iframe. For the main question, I don’t think there is much options, it seems to be a client side configuration/network that blocks iframe in both cases.
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.