TP-55555 cybertron qa collection

This commit is contained in:
varnit goyal
2024-10-15 16:21:37 +05:30
parent 4ca7300612
commit b8a16355d6

View File

@@ -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))