File Uploader: 403 error when embedding streamlit app in iframe

I am trying to embed Streamlit app on my website.
I embedded the app via iframe and it “mostly” works.
The only component that doesn’t work is the file uploader.

When uploading the file I get the following error:
Request failed with status code 403

I got the same error even when creating empty .html locally and embedding localhost link from Streamlit.

Guys, any ideas?

1 Like

Hi Yaroslav, were you able to solve this? I am facing the same issue

Also facing the same issue: but my file uploader works from local. Only getting the error from streamlit cloud host.

1 Like

Same error here. Is there a way to check the status of Streamlit servers? Are they using GCP?

try temporarily disabling XSRF protection by running Streamlit with the --server.enableXsrfProtection flag set to false:

streamlit run --server.enableXsrfProtection=false

more info App is not loading when running remotely - Streamlit Docs