Disable "secure" flag for cookies

This commit is contained in:
spikecodes 2021-01-06 09:52:23 -08:00
parent da5c4603d9
commit 3260a4d596
1 changed files with 0 additions and 1 deletions

View File

@ -33,7 +33,6 @@ pub async fn set(req: HttpRequest, form: Form<Preferences>) -> HttpResponse {
Some(value) => response.cookie( Some(value) => response.cookie(
Cookie::build("layout", value) Cookie::build("layout", value)
.path("/") .path("/")
.secure(true)
.http_only(true) .http_only(true)
.expires(OffsetDateTime::now_utc() + Duration::weeks(52)) .expires(OffsetDateTime::now_utc() + Duration::weeks(52))
.finish(), .finish(),