From 31f6a7d7e6fcf3b3b14998143a9669f2e599e0a8 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 24 Dec 2022 06:01:12 +0100 Subject: [PATCH] f* CORS, define it on app level --- consul/discovery.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index cb512ca..2b753c2 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -148,11 +148,6 @@ func (s *Service) getTags() []string { "traefik.http.services." + s.Name + ".loadbalancer.server.port=" + strconv.Itoa(s.port), "traefik.http.middlewares.compress.compress=true", "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.accessControlExposeHeaders=true", - "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",