Disable "secure" flag for cookies

This commit is contained in:
spikecodes 2021-01-06 09:52:23 -08:00
parent da5c4603d9
commit 3260a4d596

View File

@ -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(),