diff --git a/internal/waf/captcha_validator.go b/internal/waf/captcha_validator.go index a4b889e..e945e27 100644 --- a/internal/waf/captcha_validator.go +++ b/internal/waf/captcha_validator.go @@ -67,7 +67,7 @@ func (this *CaptchaValidator) validate(request *requests.Request, writer http.Re http.SetCookie(writer, &http.Cookie{ Name: "TEAWEB_WAF_CAPTCHA", Value: m + timestamp, - MaxAge: CaptchaSeconds, + MaxAge: CaptchaSeconds, // TODO 这个时间可以设置 Path: "/", // all of dirs })