diff --git a/server/server.go b/server/server.go index f2573751..2f93d0c5 100644 --- a/server/server.go +++ b/server/server.go @@ -32,6 +32,8 @@ func NewServer(profile *profile.Profile) *Server { Format: "${method} ${uri} ${status}\n", })) + e.Use(middleware.CORS()) + e.Use(middleware.TimeoutWithConfig(middleware.TimeoutConfig{ Skipper: middleware.DefaultSkipper, ErrorMessage: "Request timeout",