Skip to content

Commit 380dc1f

Browse files
committed
secure disable
1 parent 9c1ce44 commit 380dc1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/handlers/http/oidc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ fn cookie_session(id: Ulid) -> Cookie<'static> {
192192
let authorization_cookie = Cookie::build("session", id.to_string())
193193
.max_age(time::Duration::days(COOKIE_AGE_DAYS as i64))
194194
.same_site(SameSite::None)
195+
.secure(false)
195196
.path("/")
196197
.finish();
197198
authorization_cookie
@@ -201,6 +202,7 @@ fn cookie_username(username: &str) -> Cookie<'static> {
201202
let authorization_cookie = Cookie::build("username", username.to_string())
202203
.max_age(time::Duration::days(COOKIE_AGE_DAYS as i64))
203204
.same_site(SameSite::None)
205+
.secure(false)
204206
.path("/")
205207
.finish();
206208
authorization_cookie

0 commit comments

Comments
 (0)