Embedded Streamlit App as iframe: XMLHttpRequest and CORS errors

I deployed my streamlit app to the streamlit community cloud. I’m able to embed the app as an iframe on my page but looking at the console logs on my website that embedded the app I see a ton of:

Access to XMLHttpRequest at ‘https://share.streamlit.io/-/auth/app?redirect_uri=https%3A%2F%2FMYAPPNAME.streamlit.app%2Fapi%2Fv1%2Fuser’ (redirected from ‘https://MYAPPNAME.streamlit.app/api/v1/user’) from origin ‘https://MYAPPNAME.streamlit.app’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.


GET https://share.streamlit.io/-/auth/app?redirect_uri=https%3A%2F%2FMYAPPNAMEstreamlit.app%2Fapi%2Fv1%2Fuser net::ERR_FAILED 303 (See Other)

Is there anything I can do to resolve these errors?

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