Mixed Content: connecting container apps in a subnet

Filipp Trigub 0 Reputation points
2024-10-22T18:38:39.1033333+00:00

Hello there,

I'm struggling and hope you can help me.

I got several azure container apps set up in a subnet inside a vnet. The goal is to allow only 1 of them (the frontend) to be accessible via the internet, while it communicates in a secure fashion with the backend.

The frontend should of course be served via https.

The communication inside a subnet can only happen via http.

From the frontend I can curl the backend, no problem.

But when trying to reach it programmatically from my browser with the frontend opened with https, I get:

Mixed Content: The page at 'https://frontend.orangemeadow-16891632.westeurope.azurecontainerapps.io/login' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://backend/health'. This request has been blocked; the content must be served over HTTPS.

Backend network config:

  • allows insecure connections
  • sets up ip rules to allow vnet traffic
  • transport = http

Frontend network config:

  • inbound https only, but otherwise no restrictions

Whats the proper way to achieve my goal here?

Thank you!

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
442 questions
0 comments No comments
{count} votes

Your answer

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