import "github.com/rs/cors" func setupGlobalMiddleware(handler http.Handler) http.Handler { handleCORS := cors.Default().Handler return handleCORS(handler) }