Use Cache-Control immutable and SameSite Lax
This commit is contained in:
parent
7658e3bde7
commit
675e350da3
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ func (s *Session) SetCookie(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
if v := cookie.String(); v != "" {
|
||||
w.Header().Add("Set-Cookie", v+"; SameSite=Strict")
|
||||
w.Header().Add("Set-Cookie", v+"; SameSite=Lax")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue