Configure envoy proxy for Container App

Martin Gran 0 Reputation points
2024-02-04T17:21:22.09+00:00

Hi, was looking at alternatives for CORS in a frontend backend setup. Usually I have a nginx proxy that handles requests to my apps. Was thinking to do a similar thing when moving to Container app - but as we already use Envoy - can’t this just be configured to redirect traffic based on requests? I have successfully configured this locally on my docker-compose dev environment so it definitely works. However is it even possible to configure Envoy on Container Apps? Think doc is really weak. Says more “we use envoy for LB” and little more.

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

1 answer

Sort by: Most helpful
  1. Saravanan Ganesan 1,830 Reputation points MVP
    2024-02-04T17:33:26.25+00:00

    Hi Martin ,

    Yes, you can use Envoy in a Container Apps setup to handle CORS by configuring it to redirect traffic based on requests. Envoy's powerful features allow you to manage routing and apply filters for CORS handling. In a Docker Compose dev environment, you've successfully demonstrated this capability. To implement this in Container Apps, leverage Envoy's route configuration to handle cross-origin requests. While documentation may be limited, adapt your local setup, and consider reaching out to the community or Azure support for specific guidance. Utilizing Envoy's flexibility in routing can effectively address CORS concerns in your frontend-backend architecture. Regards, Saravanan Ganesan.

    0 comments No comments

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.