Consul ingress gateway and CORS

Hi there,

I am trying to connect consul ingress gateway load balancer to angular client however I am stuck at CORS Policy is there any way with which I can setup CORS policy in Ingress gateway?

Besides this I’ve also reached this ticket logged on GitHub:

So far I’ve understood that CORS is not yet supported in Ingress gateway. Is there any alternate to this?

Tried configuring Ingress controller as per this guide which made my configuration work :partying_face:

along with Ingress rules for different micro-services in place for ingress gateway.
Ingress controller can route incoming traffic to destination service and one need to configure CORS in their application.

All thanks to @lkysow for suggestion on Ingress Controller.

1 Like