Rob Ede
a1d0f051b7
fix typo
2022-03-04 17:39:32 +00:00
Rob Ede
73a5ae98b6
update actix-web dependency to 4.0
2022-02-25 23:05:11 +00:00
Rob Ede
695800c9bd
add vary header to all handled responses ( #224 )
2022-02-07 16:34:01 +00:00
Rob Ede
ab3615b8d5
relax body bounds ( #223 )
2022-02-07 02:30:26 +00:00
Rob Ede
323d01fcca
bump actix-web to 4.0.0-rc.1
2022-02-03 22:33:47 +00:00
Rob Ede
6d6b045b3a
add access-control-request-* headers to vary response header
2022-01-01 23:05:29 +00:00
Rob Ede
6676a50944
actix-web beta 15 updates ( #216 )
2021-12-18 03:37:23 +00:00
Rob Ede
0805f2b1c6
stop cloning request across service call ( #213 )
2021-12-13 02:49:27 +00:00
Rob Ede
74ec115161
migrate to actix-web beta 14 ( #209 )
2021-12-11 16:05:21 +00:00
Rob Ede
56051786a6
standardize future types to ones from actix_utils
2021-12-08 07:29:12 +00:00
Rob Ede
ec66754c0d
standardize crate level lints
2021-12-08 06:11:13 +00:00
Rob Ede
13f8dcb717
update to aw beta 9
2021-11-22 23:11:58 +00:00
Rob Ede
45643d4035
fix cors expose_any_header behavior ( #204 )
2021-10-21 15:47:56 +01:00
Ali MJ Al-Nasrawy
50621bae71
cors: make middleware generic over body type ( #195 )
2021-09-13 11:00:58 +01:00
Rob Ede
e10937103e
fmt with new width
2021-08-30 23:27:44 +01:00
Rob Ede
20ef05c36e
fix doctest ci ( #188 )
2021-06-27 07:02:38 +01:00
Rob Ede
2254a429d4
use forward_ready for service definitions
2021-03-22 05:18:59 +00:00
Andrey Kutejko
ca85f6b245
Update dependencies (Tokio 1.0) ( #144 )
2021-03-21 22:50:26 +00:00
Rob Ede
d77c908567
update Cors::allow_origin_fn docs
2021-01-03 22:35:52 +00:00
Julian Tescher
cf970ee091
Fix expose_any_header setter ( #143 )
2020-12-31 21:13:36 +09:00
Guarabot
0b2eff9384
Fix allow_any_header setter ( #121 )
2020-11-05 18:38:27 +00:00
Rob Ede
f20b724830
cors origin validator function receives origin as first parameter ( #120 )
2020-10-19 19:30:46 +01:00
Rob Ede
6084c47810
CORS builder rework ( #119 )
2020-10-19 05:51:31 +01:00
Luca Bruno
c8e641d4b6
cors: hide service struct from docs ( #118 )
...
This hides `CorsMiddleware` from rustdocs, following the pattern of
the rest of `actix_web::middleware` implementations.
2020-10-17 07:01:30 +09:00
eupn
06f17ec223
Panic on wildcard in Cors builder's allowed_origin() ( #114 )
...
* Assert allowed origin in Cors builder
* Add panic test for wildcard
* Add changelog entry
* rustfmt
* Apply suggestions from code review
Co-authored-by: Rob Ede <robjtede@icloud.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-10-10 14:25:33 +01:00
Rob Ede
134e43ab5e
split up cors lib and fix doc links ( #113 )
...
* split up cors lib and fix doc links
* clippy
2020-10-08 11:50:56 +01:00
Rob Ede
d02e508731
prepare cors release 0.4.1
2020-10-07 11:32:27 +01:00
Roman Lakhtadyr
b33012999c
feat(cors): allow using closures in allow_origin_fn ( #110 )
2020-10-07 11:29:20 +01:00
Rob Ede
33dfea8997
update httpauth readme
2020-09-28 02:04:18 +01:00
Rob Ede
d14e188246
prepare CORS release 0.4.0 ( #107 )
2020-09-27 14:29:33 +01:00
FallenWarrior2k
f185a9c7e6
CORS: Take TryInto instead of TryFrom ( #106 )
2020-09-26 20:02:45 +01:00
Roman Lakhtadyr
99fe08f332
actix-cors: Create allowed_origin_fn
builder method ( #93 )
...
Co-authored-by: ArmorDarks <git@lavrins.com>
2020-09-25 00:36:53 +01:00
Rob Ede
7a26d99c1a
lint and readme cleanup ( #97 )
2020-09-12 00:52:55 +01:00
Rob Ede
bad5f32a68
update all packages to use actix-web v3 ( #94 )
2020-09-11 16:26:15 +01:00
Luca BRUNO
95041b8e80
actix-cors: cosmetic and minor fixes
...
This rewords part of the docstrings for better readability,
and introduces additional lints. That includes ensuring that
all public types implement the Debug trait.
2020-07-06 15:55:53 +00:00
Yuki Okushi
8176d5e121
Run rustfmt
2020-03-12 05:48:57 +09:00
Yuki Okushi
9a8275b455
Minimize futures-*
dependencies
2020-03-12 05:43:48 +09:00
Yuki Okushi
21994c13eb
Fix/suppress clippy warnings
2020-01-30 18:21:02 +09:00
Nikolay Kim
f86ce0390e
allow to specify multi pattern for resources
2019-12-25 20:14:44 +04:00
Nikolay Kim
1f3ffe38e8
update actix-service dep
2019-12-08 19:25:24 +06:00
Nikolay Kim
205a964d8f
upgrade to tokio 0.2
2019-12-05 23:35:43 +06:00
Nikolay Kim
f73f97353b
refactor ResponseError trait
2019-11-26 16:07:39 +06:00
Nikolay Kim
4dc31aac93
use actix_rt::test for test setup
2019-11-26 11:25:50 +06:00
Nikolay Kim
57981ca04a
update tests to async handlers
2019-11-22 11:49:35 +06:00
Nikolay Kim
6ac4ac66b9
migrate actix-cors
2019-11-21 16:02:17 +06:00
Nikolay Kim
2a2d7f5768
nightly clippy warnings
2019-07-17 15:53:51 +06:00
Nikolay Kim
4092c7f326
clippy warnings
2019-07-17 15:08:30 +06:00
Nikolay Kim
7b1dcaffda
cleanup deprecation warning for Box<dyn>
2019-07-17 11:44:39 +06:00
Nikolay Kim
cd323f2ff1
Move cors middleware to actix-cors crate
2019-06-15 09:34:16 +06:00