标签:beego
beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
AllowOrigins: []string{"http://localhost:9090"},
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "PATCH"},
AllowHeaders: []string{"Origin", "Auth-Token"},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true}))
标签:beego
原文地址:http://blog.51cto.com/iceyao/2128989