diff --git a/router/router.go b/router/router.go index af73f111..b75e7265 100644 --- a/router/router.go +++ b/router/router.go @@ -30,8 +30,9 @@ func Init(e *echo.Echo, container container.Container) { func setCORSConfig(e *echo.Echo, container container.Container) { if container.GetConfig().Extension.CorsEnabled { e.Use(middleware.CORSWithConfig(middleware.CORSConfig{ - AllowCredentials: true, - AllowOrigins: []string{"*"}, + AllowCredentials: true, + UnsafeWildcardOriginWithAllowCredentials: true, + AllowOrigins: []string{"*"}, AllowHeaders: []string{ echo.HeaderAccessControlAllowHeaders, echo.HeaderContentType,