Преглед изворни кода

change samesite cookie attribute to lax mode, to fix github/oauth login

Alexander Belanger пре 4 година
родитељ
комит
2eb1c73124
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      internal/auth/sessionstore/sessionstore.go

+ 1 - 1
internal/auth/sessionstore/sessionstore.go

@@ -124,7 +124,7 @@ func NewStore(repo *repository.Repository, conf config.ServerConf) (*PGStore, er
 			MaxAge:   86400 * 30,
 			Secure:   true,
 			HttpOnly: true,
-			SameSite: http.SameSiteStrictMode,
+			SameSite: http.SameSiteLaxMode,
 		},
 		Repo: repo,
 	}