mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 10:56:31 +08:00
improvement (cookie): leverage the 'SameSite' attribute
This commit is contained in:
@ -67,6 +67,7 @@ func AdminSessionAuthenticate(ctx App, res http.ResponseWriter, req *http.Reques
|
||||
Value: obfuscate,
|
||||
Path: COOKIE_PATH_ADMIN,
|
||||
MaxAge: 60*60, // valid for 1 hour
|
||||
SameSite: http.SameSiteStrictMode,
|
||||
})
|
||||
SendSuccessResult(res, true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user