Skip to content

Commit 3357fe8

Browse files
authored
chore(api/auth): set secure flag even for removal (#728)
1 parent 2c0a944 commit 3357fe8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/auth.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ impl LoginCookie {
5151
pub fn removal() -> Cookie<'static> {
5252
let mut cookie = Cookie::build(&SETTINGS.auth.login_cookie_name, "")
5353
.http_only(true)
54+
.secure(SETTINGS.auth.auth_cookie_secure)
5455
.path("/")
5556
.finish();
5657
cookie.make_removal();

0 commit comments

Comments
 (0)