Ver Fonte

Merge pull request #844 from porter-dev/0.5.0-fix-github-login

[0.5.0] Change `SameSite` cookie attribute to `Lax` mode, to fix Github/OAuth login
abelanger5 há 5 anos atrás
pai
commit
25f1165716
1 ficheiros alterados com 1 adições e 1 exclusões
  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,
 	}