diff options
author | Unknwon <u@gogs.io> | 2017-02-22 21:46:43 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-22 21:46:43 -0500 |
commit | 054e97d6143b1ee86b4cd2d34e3b3da9cfe0df9a (patch) | |
tree | 61793a1450d7fe443758faa285d054102faa9f88 /conf | |
parent | 28983c94ffee24dd3760da8ae6509bdb4822d0a1 (diff) |
csrf: able to set custom cookie name
Add new config option '[session] CSRF_COOKIE_NAME'.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/app.ini | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini index 1e66a758..36393a32 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -250,6 +250,8 @@ ENABLE_SET_COOKIE = true GC_INTERVAL_TIME = 86400 ; Session life time, default is 86400 SESSION_LIFE_TIME = 86400 +; Cookie name for CSRF +CSRF_COOKIE_NAME = _csrf [picture] ; Path to store user uploaded avatars |