Added same-site policy for session options (#1381)

* Feat: added same-site policy for session options

* Feat: configurations in conf package to control the `SameSite` mode and `Secure` value of the session.

Co-authored-by: AaronLiu <abslant@126.com>
This commit is contained in:
AHdark
2022-12-16 13:59:26 +08:00
committed by GitHub
parent fd59d1b5ca
commit 74e1bd6a43
5 changed files with 90 additions and 18 deletions

View File

@@ -63,6 +63,8 @@ type cors struct {
AllowHeaders []string
AllowCredentials bool
ExposeHeaders []string
SameSite string
Secure bool
}
var cfg *ini.File