diff --git a/app/http/middlewares/base.go b/app/http/middlewares/base.go index ef777eb..d550a9b 100644 --- a/app/http/middlewares/base.go +++ b/app/http/middlewares/base.go @@ -45,7 +45,7 @@ func Auth() gin.HandlerFunc { func Cors() gin.HandlerFunc { return func(c *gin.Context) { //c.Writer.Header().Set("Access-Control-Allow-Origin", "*") - c.Writer.Header().Set("Access-Control-Allow-Origin", "https://milk.h5.cdlsxd.cn/") + c.Writer.Header().Set("Access-Control-Allow-Origin", "*") c.Writer.Header().Set("Access-Control-Allow-Credentials", "true") c.Writer.Header().Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, platform,Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control,token, X-Requested-With") c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, OPTIONS, GET, PUT, DELETE")