mirror of https://github.com/spikecodes/libreddit
Disable "secure" flag for cookies
This commit is contained in:
parent
da5c4603d9
commit
3260a4d596
|
@ -33,7 +33,6 @@ pub async fn set(req: HttpRequest, form: Form<Preferences>) -> HttpResponse {
|
|||
Some(value) => response.cookie(
|
||||
Cookie::build("layout", value)
|
||||
.path("/")
|
||||
.secure(true)
|
||||
.http_only(true)
|
||||
.expires(OffsetDateTime::now_utc() + Duration::weeks(52))
|
||||
.finish(),
|
||||
|
|
Loading…
Reference in New Issue