Merge branch 'feature/revert_xsrf' into feature/v1.12.9

This commit is contained in:
jianzhiyao 2022-06-24 22:44:26 +08:00
commit 36edb18d6e

View File

@ -680,7 +680,8 @@ func (c *Controller) XSRFToken() string {
if c.XSRFExpire > 0 { if c.XSRFExpire > 0 {
expire = int64(c.XSRFExpire) expire = int64(c.XSRFExpire)
} }
c._xsrfToken = c.Ctx.XSRFToken(BConfig.WebConfig.XSRFKey, expire) c._xsrfToken = c.Ctx.XSRFToken(BConfig.WebConfig.XSRFKey, expire,
BConfig.WebConfig.XSRFSecure, BConfig.WebConfig.XSRFHttpOnly)
} }
return c._xsrfToken return c._xsrfToken
} }