Below is the code for making a api server with go gin. But it has some troubles that when I call with postman a GET api work. But when I call by pasting the url to google chrome browser it failed
router := gin.Default()
config := cors.DefaultConfig()
config.AllowAllOrigins = true
router.Use(cors.New(config))
router.Run("4000")