Merge branch 'feature/revert_xsrf' into feature/v1.12.9
This commit is contained in:
commit
36edb18d6e
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user