Skip to content

Commit

Permalink
feat: add Referrer-Policy while redirect (pr #2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Nov 1, 2022
1 parent 1c212f6 commit e75f19e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/handles/down.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func Down(c *gin.Context) {
common.ErrorResp(c, err, 500)
return
}
c.Header("Referrer-Policy", "no-referrer")
c.Redirect(302, link.URL)
}
}
Expand Down

0 comments on commit e75f19e

Please sign in to comment.