From bdc15cb6dbbc47d6d03c7712ebe403c5e71b952f Mon Sep 17 00:00:00 2001 From: aroxu Date: Sun, 15 Oct 2023 18:36:57 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=90=20CORS=EC=97=90=20baggage=EB=A5=BC?= =?UTF-8?q?=20=ED=97=88=EC=9A=A9=20=EB=AA=A9=EB=A1=9D=EC=97=90=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rest/cors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/cors.go b/rest/cors.go index f8cadbf..7503c68 100644 --- a/rest/cors.go +++ b/rest/cors.go @@ -7,7 +7,7 @@ func Cors() gin.HandlerFunc { return func(c *gin.Context) { 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, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With") + c.Writer.Header().Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, baggage, origin, Cache-Control, X-Requested-With") c.Writer.Header().Set("Access-Control-Allow-Methods", "GET, POST, PUT, PATCH, DELETE") c.Writer.Header().Set("Access-Control-Request-Method", "*")