mirror of
https://github.com/yhl452493373/frps-panel.git
synced 2026-04-04 06:16:59 +08:00
solve http login issue
This commit is contained in:
@@ -175,9 +175,9 @@ func (s *Server) initHTTPServer() error {
|
|||||||
engine := gin.New()
|
engine := gin.New()
|
||||||
authStore := cookie.NewStore([]byte("frps-panel"))
|
authStore := cookie.NewStore([]byte("frps-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,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user