I wrote a Dockerfile for /container that can do this using NGINX official container with CORS reverse proxy configuration. If it helps, see my forum posting:
“Mginx” Container - Reverse Proxy for CORS & X.509 support using Nginx
edit: I need to proofread my posts, “X.509” not X506, and “wrote”