Explorar el Código

fix: fix cookie path

JustSong hace 1 año
padre
commit
04944427b8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      main.go

+ 1 - 0
main.go

@@ -66,6 +66,7 @@ func main() {
 		store = cookie.NewStore([]byte(common.SessionSecret))
 	}
 	store.Options(sessions.Options{
+		Path:     "/",
 		HttpOnly: true,
 		MaxAge:   30 * 24 * 3600,
 	})