We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ea0c6 commit aa6601eCopy full SHA for aa6601e
server/cookie/cookie.go
@@ -36,8 +36,9 @@ func SetSession(gc *gin.Context, sessionID string) {
36
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
37
// https://github.com/gin-gonic/gin/blob/master/context.go#L86
38
// TODO add ability to sameSite = none / strict from dashboard
39
- gc.SetSameSite(http.SameSiteLaxMode)
40
-
+ if !appCookieSecure {
+ gc.SetSameSite(http.SameSiteLaxMode)
41
+ }
42
// TODO allow configuring from dashboard
43
year := 60 * 60 * 24 * 365
44
0 commit comments