From 393e774ba614ea752ad42556f4a846fde56f4de7 Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Mon, 5 Aug 2024 15:46:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=B7=E6=A0=BC=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/middlewares/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/http/middlewares/base.go b/app/http/middlewares/base.go index 70a8332..b9650a4 100644 --- a/app/http/middlewares/base.go +++ b/app/http/middlewares/base.go @@ -44,7 +44,7 @@ func Auth() gin.HandlerFunc { func Cors() gin.HandlerFunc { return func(c *gin.Context) { - c.Writer.Header().Set("Access-Control-Allow-Origin", "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")