mirror of
https://gitee.com/gitea/gitea
synced 2025-12-09 01:30:27 +08:00
Add Access-Control-Expose-Headers (#12446)
Fix #12424 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
@@ -370,5 +370,6 @@ func GetAllUsers(ctx *context.APIContext) {
|
||||
|
||||
ctx.SetLinkHeader(int(maxResults), listOptions.PageSize)
|
||||
ctx.Header().Set("X-Total-Count", fmt.Sprintf("%d", maxResults))
|
||||
ctx.Header().Set("Access-Control-Expose-Headers", "X-Total-Count, Link")
|
||||
ctx.JSON(http.StatusOK, &results)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user