mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-27 18:49:01 +02:00
cors origin validator function receives origin as first parameter (#120)
This commit is contained in:
@ -6,14 +6,18 @@
|
||||
* `CorsFactory` is removed. [#119]
|
||||
* The `impl Default` constructor is now overly-restrictive. [#119]
|
||||
* Added `Cors::permissive()` constructor that allows anything. [#119]
|
||||
* Adds methods for each property to reset to a permissive state. (`allow_any_origin`, `expose_any_header`, etc.) [#119]
|
||||
* Adds methods for each property to reset to a permissive state. (`allow_any_origin`,
|
||||
`expose_any_header`, etc.) [#119]
|
||||
* Errors are now propagated with `Transform::InitError` instead of panicking. [#119]
|
||||
* Fixes bug where allowed origin functions are not called if `allowed_origins` is All. [#119]
|
||||
* `AllOrSome` is no longer public. [#119]
|
||||
* Functions used for `allowed_origin_fn` now receive the Origin HeaderValue as the
|
||||
first parameter. [#120]
|
||||
|
||||
[#114]: https://github.com/actix/actix-extras/pull/114
|
||||
[#118]: https://github.com/actix/actix-extras/pull/118
|
||||
[#119]: https://github.com/actix/actix-extras/pull/119
|
||||
[#120]: https://github.com/actix/actix-extras/pull/120
|
||||
|
||||
|
||||
## 0.4.1 - 2020-10-07
|
||||
|
Reference in New Issue
Block a user