소스 검색

fix: fix cookie path

JustSong 1 년 전
부모
커밋
04944427b8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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,
 	})