fix cookie path

This commit is contained in:
Brandon Thomas committed 2023-10-19 05:53:44 -04:00
1 parent 0cc3baee27
commit 6d01506bd1
1 file changed
+1 -2
@@ -39,10 +39,9 @@ impl AvtCookieManager {
Ok(Cookie::build(VISITOR_COOKIE_NAME, jwt_string)
.secure(make_secure) // HTTPS-only
.permanent()
.path("/") // NB: Otherwise it'll be set to `/v1`
//.domain(&self.cookie_domain)
//.path("/")
//.http_only(true) // Not exposed to Javascript
//.expires(OffsetDateTime::now_utc() + time::Duration::days(365))
//.same_site(SameSite::Lax)
.finish())
}