From 230e06148e202ae83269bcd597277c6ff2c25e19 Mon Sep 17 00:00:00 2001 From: Umputun Date: Thu, 4 Jan 2018 13:06:30 -0600 Subject: [PATCH] httpOnly cookie --- app/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.go b/app/main.go index 655d1c76..e8c9a6f5 100644 --- a/app/main.go +++ b/app/main.go @@ -82,6 +82,7 @@ func main() { dataService := store.Service{Interface: dataStore, EditDuration: 5 * time.Minute} sessionStore := sessions.NewFilesystemStore(opts.ServerCommand.SessionStore, []byte(opts.ServerCommand.StoreKey)) + sessionStore.Options.HttpOnly = true exporter := migrator.Remark{DataStore: dataStore} srv := rest.Server{