Mixed Content: connecting container apps in a subnet
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!