Streamlit apps iframing don't work since the migration on subdomains-based URL structure

Hello Streamlit Team & community,

Since the migration of Streamlit cloud apps to a subdomain-based URL structure, all the apps iframed on other external webpages don’t open returning the error “The page isn’t redirecting properly”.

My custom URL (does not work): Google Discover Insights - SEO tools - Alekseo
Streamlit cloud URL (works): https://fruall-google-discover-insights-v2-discover-53rtxa.streamlitapp.com/

Error message :

iFrame code:

	<iframe src="https://fruall-google-discover-insights-v2-discover-53rtxa.streamlitapp.com/"
			frameborder="0"
			marginheight="0"
			marginwidth="0"
			width="100%"
			height="100%"
			scrolling="auto">
	</iframe>

As I see, a Streamlit app makes now a couple of redirects (something new?).

Checking other apps from other Streamlit developpers, I see that the problem is omnipresent and massive. Is there a solution to properly integrate the app on a custom URL?

Thank you for your responses!

2 Likes

Thanks for reporting the issue, @Alekseo! :pray:

I’m pasting @randyzwitch’s answer here, for visibility.

Hi Alexis -

This was a bug that escaped, not a specifically intended feature release. It has since been rolled back, and I’m clarifying with our product and eng teams about pre-announcing any breaking changes so there aren’t issues like this in the future

Best wishes,
Charly

Great

1 Like

Hello,

I too ran into the same issue, however I found out that when the app is hosted through git it prevents from redirecting the page,

Solution: Switch the hosting platform, I switched to Heroku and it worked for me.

Cheers