diff --git a/router/middleware/header/header.go b/router/middleware/header/header.go index dcd806cf..577d7a7d 100644 --- a/router/middleware/header/header.go +++ b/router/middleware/header/header.go @@ -27,7 +27,7 @@ func Options(c *gin.Context) { } else { c.Header("Access-Control-Allow-Origin", "*") c.Header("Access-Control-Allow-Methods", "GET,POST,PUT,PATCH,DELETE,OPTIONS") - c.Header("Access-Control-Allow-Headers", "Authorization") + c.Header("Access-Control-Allow-Headers", "authorization, origin, content-type, accept") c.Header("Allow", "HEAD,GET,POST,PUT,PATCH,DELETE,OPTIONS") c.Header("Content-Type", "application/json") c.AbortWithStatus(200)