Skip to content

Commit

Permalink
Set cookie's secure flag to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Marconi committed Aug 11, 2023
1 parent 7b45e01 commit 28036f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub fn get_session_layer(redis_pool: Pool) -> SessionLayer<UserSessionStore> {
SessionLayer::new(session_store, &secret)
.with_persistence_policy(PersistencePolicy::ChangedOnly)
.with_http_only(false)
.with_secure(false)
.with_same_site_policy(SameSite::Strict)
}

Expand Down

0 comments on commit 28036f7

Please sign in to comment.