mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
fix cookie path
This commit is contained in:
1 parent
0cc3baee27
commit
6d01506bd1
1 file changed
+1
-2
+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())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user