File_uploader - AxiosError: Request failed with status code 403

I have a streamlit app deployed on EC2’s behind an AWS ALB. When I try to upload a file I’m getting a 403 error. I can resolve this by disabling XRSF protection but what is a solution for a production env? It also oddly fails on an upload every now and then with status code 400.


1 Like