How do I configure CORS middleware when using the forestadmin agent?

I need to add CORS settings such as Access-Control-Allow-Origin to be served by the agent.

I am running forestadmin backend API behind an AWS API Gateway and Load Balancer using ECS. I need to return certain CORS headers that the API Gateway will not return according to AWS documention.

Is there documentation about how to add whatever custom CORS settings I require to the forestadmin agent? The documentation is very sparse about this, and there does not seem to be any dedicated support for this product other than this message board, even though I am paying customer.

I’m having a disappointing experience deploying to staging and production due to this problem, which our team has been stuck on for 5 days now.