Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-09-11 19:03:19 +0300
committerTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-09-11 19:03:19 +0300
commit7a47e860f3e31b02eacfff2bc32bef25e52f27b7 (patch)
tree77ace15bd27a42244f106e9a5aa95d752421cd58
parent551ec02c4a7d0d4da3936f0e1fccf6269ac07921 (diff)
Do not set domain to cookie to avoid wildcard cookie
-rw-r--r--internal/auth/auth.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go
index ab661d3d..5890feae 100644
--- a/internal/auth/auth.go
+++ b/internal/auth/auth.go
@@ -65,7 +65,6 @@ func (a *Auth) getSessionFromStore(r *http.Request) (*sessions.Session, error) {
// Cookie just for this domain
session.Options = &sessions.Options{
Path: "/",
- Domain: host,
}
}