default samesite to lax

This commit is contained in:
Livio Amstutz 2019-12-02 13:40:08 +01:00
parent eb774003d7
commit c9317f538c

View file

@ -19,7 +19,7 @@ func NewCookieHandler(hashKey, encryptKey []byte, opts ...CookieHandlerOpt) *Coo
c := &CookieHandler{
securecookie: securecookie.New(hashKey, encryptKey),
secureOnly: true,
sameSite: http.SameSiteNoneMode,
sameSite: http.SameSiteLaxMode,
}
for _, opt := range opts {