Consul - CORS problem with javascript front

Hi,

I have a front developed in Javascript that requests an API endpoint and I have a CORS problem:
Cross-Origin Request Blocked: The same Origin Policy disallows reading the remote resources at http://localhost:7000/health (Reason: CORS request did not succeed).

My configuration works if I don’t use Consul connect (Mesh network) but use Traefik with standard routing so I suppose the problem is from the Envoy proxy that doesn’t handle correctly the header. How can I configure it to deal with CORS ?

Thanks