TP-55555 cybertron qa collection
This commit is contained in:
@@ -44,7 +44,7 @@ func (s *Server) router() {
|
||||
|
||||
func (s *Server) Start() {
|
||||
s.gin.Use(ginzap.Ginzap(s.dependencies.Logger, time.RFC3339, false))
|
||||
var AllowOrigins = []string{"http://google.com"}
|
||||
var AllowOrigins = []string{"*"}
|
||||
corsConfig := cors.DefaultConfig()
|
||||
corsConfig.AllowOrigins = AllowOrigins
|
||||
s.gin.Use(cors.New(corsConfig))
|
||||
|
||||
Reference in New Issue
Block a user