From 867e7d57b702c8d8bfd6ff3b5bda76ac331f99a3 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 24 Dec 2022 06:03:21 +0100 Subject: [PATCH] f* CORS, define it on app level --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 2b753c2..ed714aa 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -143,7 +143,7 @@ func (s *Service) getTags() []string { "traefik.http.routers." + s.Name + ".entryPoints=https", "traefik.http.routers." + s.Name + ".tls=true", "traefik.http.routers." + s.Name + ".service=" + s.Name, - "traefik.http.routers." + s.Name + ".middlewares=compress,requestid,cors", + "traefik.http.routers." + s.Name + ".middlewares=compress,requestid", "traefik.http.services." + s.Name + ".loadbalancer.server.scheme=http", "traefik.http.services." + s.Name + ".loadbalancer.server.port=" + strconv.Itoa(s.port), "traefik.http.middlewares.compress.compress=true",