Share via

The Azure Container App does not accept Incoming request from external

Santi Cuni 0 Reputation points
2026-03-16T17:50:11.2766667+00:00

I have created two Azure Container apps. I have verified that the internal communications between the frontend and backend worked properly. However, the UI does not go up, even if the Azure container's console shows that Streamlit is up and rûnning. I have also added configuration to properly redirect HTTP to HTTPS. Indeed, Azure containers expect HTTPS, but my frontend and backend talk on HTTP. Here is the Dockerfile for the frontend: What I have to do it? Thanks Regards

FROM python:3.11-slim
COPY . /app/Production
ENV PYTHONPATH=/app
WORKDIR /app/Production/frontend
RUN pip install --no-cache-dir -r requirements.txt
CMD ["streamlit", "run", "frontend.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false", "--server.enableCORS=false"]
Azure Container Apps
Azure Container Apps

An Azure service that provides a general-purpose, serverless container platform.


3 answers

Sort by: Most helpful
  1. Santi Cuni 0 Reputation points
    2026-03-16T18:27:25.6866667+00:00

    Hi @Pravallika KV I have done as suggested by you, however, the issue is still there. How I can do it?

    User's image


  2. Santi Cuni 0 Reputation points
    2026-03-16T18:17:35.65+00:00

    Hi @Pravallika KV

    Thanks for your answer. I have changed the Dockerfile and rebuild and push the image. Also, I have attached the settings on Ingress.

    User's image

    However, I did not get the points 3 that you described. Point 3: I do not think that I have added any HTTP=>HTTPS redirect cpuld you tell me how Remove the in-app HTTP=>HTTPS redirect? My Streamlit does not force inside the container any HTTP to HTTPS redirect. What does mean "let the Container App handle TLS and just speak HTTP on port 8501"?. Thanks

    Reagrds


  3. Santi Cuni 0 Reputation points
    2026-03-16T18:10:41.9+00:00

    Hi @Pravillika

    Thanks for your answer. I have changed the Dockerfile and rebuild and push the image. Also, I have attached the settings on Ingress.

    User's image

    However, I did not get the points 3 that you described. Point 3: I do not think that I have added any HTTP=>HTTPS redirect cpuld you tell me how Remove the in-app HTTP=>HTTPS redirect? My Streamlit does not force inside the container any HTTP to HTTPS redirect. What does mean "let the Container App handle TLS and just speak HTTP on port 8501"?. Thanks

    Reagrds

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.