diff options
-rw-r--r-- | routes/repo/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/repo/http.go b/routes/repo/http.go index 3ec7628e..9f0f311b 100644 --- a/routes/repo/http.go +++ b/routes/repo/http.go @@ -47,7 +47,7 @@ func HTTPContexter() macaron.Handler { if len(setting.HTTP.AccessControlAllowOrigin) > 0 { // Set CORS headers for browser-based git clients c.Resp.Header().Set("Access-Control-Allow-Origin", setting.HTTP.AccessControlAllowOrigin) - c.Resp.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization") + c.Resp.Header().Set("Access-Control-Allow-Headers", "Content-Type, Authorization, User-Agent") // Handle preflight OPTIONS request if c.Req.Method == "OPTIONS" { |