diff --git a/consul/discovery.go b/consul/discovery.go index 3af2a29..7b6ffad 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -150,6 +150,8 @@ func (s *Service) getTags() []string { "traefik.http.middlewares.requestid.plugin.requestid.headerName=X-Request-ID", "traefik.http.middlewares.cors.headers.accesscontrolallowmethods=*", "traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=*", + "traefik.http.middlewares.cors.headers.accesscontrolmaxage=100", + "traefik.http.middlewares.cors.headers.addvaryheader=true", "traefik.tls.certificates.certfile=/certs/client.cert", "traefik.tls.certificates.keyfile=/certs/client.key", // "traefik.http.services." + s.Name + ".loadbalancer.passhostheader=false",