From c44da161b12e16369dd9ea74cb147726aa850875 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 24 Dec 2022 05:50:46 +0100 Subject: [PATCH] added CORS dev config --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 7b6ffad..8d9b7f2 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", + "traefik.http.routers." + s.Name + ".middlewares=compress,requestid,cors", "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",