mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 23:51:06 +01:00
parent
9a3b410409
commit
eb3660a772
@ -1,8 +1,11 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2021-xx-xx
|
## Unreleased - 2021-xx-xx
|
||||||
|
- Set SameSite attribute when adding a session removal cookie. [#284]
|
||||||
- Minimum supported Rust version (MSRV) is now 1.59 due to transitive `time` dependency.
|
- Minimum supported Rust version (MSRV) is now 1.59 due to transitive `time` dependency.
|
||||||
|
|
||||||
|
[#284]: https://github.com/actix/actix-extras/pull/284
|
||||||
|
|
||||||
|
|
||||||
## 0.7.1 - 2022-07-24
|
## 0.7.1 - 2022-07-24
|
||||||
- Fix interaction between session state changes and renewal. [#265]
|
- Fix interaction between session state changes and renewal. [#265]
|
||||||
|
@ -444,7 +444,8 @@ fn delete_session_cookie(
|
|||||||
) -> Result<(), anyhow::Error> {
|
) -> Result<(), anyhow::Error> {
|
||||||
let removal_cookie = Cookie::build(config.name.clone(), "")
|
let removal_cookie = Cookie::build(config.name.clone(), "")
|
||||||
.path(config.path.clone())
|
.path(config.path.clone())
|
||||||
.http_only(config.http_only);
|
.http_only(config.http_only)
|
||||||
|
.same_site(config.same_site);
|
||||||
|
|
||||||
let mut removal_cookie = if let Some(ref domain) = config.domain {
|
let mut removal_cookie = if let Some(ref domain) = config.domain {
|
||||||
removal_cookie.domain(domain)
|
removal_cookie.domain(domain)
|
||||||
|
Loading…
Reference in New Issue
Block a user