// CORS restricted
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{
AllowOrigins: makeStrArray(cfg.Functional.CORS.AllowOrigins),
AllowMethods: makeStrArray(cfg.Functional.CORS.AllowMethods),
AllowHeaders: makeStrArray(cfg.Functional.CORS.AllowHeaders),
AllowCredentials: true,
}))