austinm
'The information you’re about to submit is not secure'
haha my bad. I thought I needed that. I didn't have any middleware setup previously. Can you tell me if my undertsanding is correct: When the app gets a request to the upload endpoint, it is being redirected via http which is insecure. So I need to make sure it is not redirecting to http??
22 replies
'The information you’re about to submit is not secure'
I added this to the fastapi backend:
app.add_middleware(TrustedHostMiddleware, allowed_hosts=["*"], allow_any=True)
app.add_middleware(HTTPSRedirectMiddleware)
Not sure if this is the correct approach but the app is just not working at all now haha
22 replies
'The information you’re about to submit is not secure'
yeah, I tried fixing that by explicitly stating https in the form submit: <form action="https://fastapi-production-23e9.up.railway.app/uploadfile" method="post" enctype="multipart/form-data" id="uploadForm">
22 replies
'The information you’re about to submit is not secure'
here is the site: https://fastapi-production-23e9.up.railway.app/
22 replies