From 4c3059ef80aab78932b04ed315dc72fa90e15bfa Mon Sep 17 00:00:00 2001 From: a7458969 <290198252@qq.com> Date: Tue, 3 Mar 2020 20:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=A8=E5=9F=9F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f948257..cd6a73f 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,7 @@ func InitLogs() { } func CORSMiddleware(c *gin.Context) { c.Writer.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE, UPDATE") - c.Writer.Header().Set("Access-Control-Allow-Origin", "http://localhost:8080") + c.Writer.Header().Set("Access-Control-Allow-Origin", "http://localhost:8080,https://https://www.testingcloud.club/,https://https://testingcloud.club/") c.Writer.Header().Set("Access-Control-Max-Age", "86400") c.Writer.Header().Set("Access-Control-Allow-Headers", "X-Requested-With," +