diff --git a/hub/route/server.go b/hub/route/server.go index a1bbcde9..7736a3c9 100644 --- a/hub/route/server.go +++ b/hub/route/server.go @@ -52,9 +52,10 @@ func Start(addr string, secret string) { MaxAge: 300, }) + r.Use(cors.Handler) r.Get("/", hello) r.Group(func(r chi.Router) { - r.Use(cors.Handler, authentication) + r.Use(authentication) r.Get("/logs", getLogs) r.Get("/traffic", traffic)