solve http login issue

This commit is contained in:
2023-09-26 13:06:04 +08:00
parent ae7887a918
commit 07cbf8d6a3

View File

@@ -175,9 +175,9 @@ func (s *Server) initHTTPServer() error {
engine := gin.New() engine := gin.New()
authStore := cookie.NewStore([]byte("frpc-panel")) authStore := cookie.NewStore([]byte("frpc-panel"))
authStore.Options(sessions.Options{ authStore.Options(sessions.Options{
Secure: true, Secure: false,
HttpOnly: false, HttpOnly: false,
SameSite: 4, SameSite: http.SameSiteDefaultMode,
Path: "/", Path: "/",
MaxAge: s.cfg.CommonInfo.AdminKeepTime, MaxAge: s.cfg.CommonInfo.AdminKeepTime,
}) })