1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-09-02 21:16:37 +02:00

fix!(cors): default block_on_origin_mismatch to false (#379)

This commit is contained in:
Rob Ede
2024-01-06 20:40:44 +00:00
committed by GitHub
parent e2bf504055
commit d55fc6d7f5
4 changed files with 35 additions and 27 deletions

View File

@@ -3,6 +3,7 @@
## Unreleased
- `Cors` is now marked `#[must_use]`.
- Default for `Cors::block_on_origin_mismatch` is now false.
- Minimum supported Rust version (MSRV) is now 1.75.
## 0.6.5
@@ -12,34 +13,29 @@
## 0.6.4
- Add `Cors::allow_private_network_access()` behind an unstable flag (`draft-private-network-access`). [#297]
[#297]: https://github.com/actix/actix-extras/pull/297
- Add `Cors::allow_private_network_access()` behind an unstable flag (`draft-private-network-access`).
## 0.6.3
- Add `Cors::block_on_origin_mismatch()` option for controlling if requests are pre-emptively rejected. [#287]
- Add `Cors::block_on_origin_mismatch()` option for controlling if requests are pre-emptively rejected.
- Minimum supported Rust version (MSRV) is now 1.59 due to transitive `time` dependency.
[#287]: https://github.com/actix/actix-extras/pull/287
## 0.6.2
- Fix `expose_any_header` to return list of response headers. [#273]
- Fix `expose_any_header` to return list of response headers.
- Minimum supported Rust version (MSRV) is now 1.57 due to transitive `time` dependency.
[#273]: https://github.com/actix/actix-extras/pull/273
## 0.6.1
- Do not consider requests without a `Access-Control-Request-Method` as preflight. [#226]
[#226]: https://github.com/actix/actix-extras/pull/226
- Do not consider requests without a `Access-Control-Request-Method` as preflight.
## 0.6.0
- Update `actix-web` dependency to 4.0.
<details>
<summary>0.6.0 pre-releases</summary>
## 0.6.0-beta.10
- Ensure that preflight responses contain a `Vary` header. [#224]
@@ -99,6 +95,8 @@
- Update `actix-web` dependency to 4.0.0 beta.
- Minimum supported Rust version (MSRV) is now 1.46.0.
</details>
## 0.5.4
- Fix `expose_any_header` method, now set the correct field. [#143]