diff --git a/router/routes/routes.go b/router/routes/routes.go index 5c6288c..364789d 100644 --- a/router/routes/routes.go +++ b/router/routes/routes.go @@ -39,9 +39,6 @@ func NewServ() *gin.Engine { corsConfig := cors.DefaultConfig() corsConfig.AllowCredentials = true corsConfig.AllowAllOrigins = true - corsConfig.AllowOriginFunc = func(origin string) bool { - return true - } r.Use(cors.New(corsConfig)) // session r.Use(sessions.Sessions("ginsess", store))