Skip to content

Commit d3e65b8

Browse files
committed
feat: add samesite when new session
1 parent 3c85a14 commit d3e65b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mongostore.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ func (m *MongoStore) New(r *http.Request, name string) (
9494
Domain: m.Options.Domain,
9595
Secure: m.Options.Secure,
9696
HttpOnly: m.Options.HttpOnly,
97+
SameSite: m.Options.SameSite,
9798
}
9899
session.IsNew = true
99100
var err error

0 commit comments

Comments
 (0)