mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 21:04:07 +08:00
feat: add Referrer-Policy
while redirect (pr #2160)
This commit is contained in:
parent
1c212f6c30
commit
e75f19e9c0
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user