gin-cors CORS middleware for Gin. Installation $ go get github.com/tommy351/gin-cors Usage import ( "github.com/gin-gonic/gin" "github.com/tommy351/gin-cors" ) func main(){ g := gin.New() g.Use(cors.Middleware(cors.Options{})) }