feat: add `Referrer-Policy` while redirect (pr #2160)

pull/2206/head
Noah Hsu 2022-11-01 19:19:08 +08:00
parent 1c212f6c30
commit e75f19e9c0
1 changed files with 1 additions and 0 deletions

View File

@ -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)
}
}