Merge branch 'master' into fix-net-allow

This commit is contained in:
babybug 2020-01-23 13:45:51 +08:00 committed by GitHub
commit 9eaf38709a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2025,7 +2025,7 @@ func main() {
if err != nil {
cookie = "NotSet"
c.SetCookie("gin_cookie", "test", 3600, "/", "localhost", false, true)
c.SetCookie("gin_cookie", "test", 3600, "/", "localhost", http.SameSiteLaxMode, false, true)
}
fmt.Printf("Cookie value: %s \n", cookie)