Rob Ede
433c926503
chore: address clippy lints
2024-06-09 23:08:20 +01:00
Rob Ede
a5f5e31a82
chore: remove redundant imports
2024-02-19 16:18:17 +00:00
Rob Ede
8b4e8ea34e
chore(actix-session): prepare release 0.9.0
2024-01-11 04:27:56 +00:00
Rob Ede
d55fc6d7f5
fix!(cors): default block_on_origin_mismatch to false ( #379 )
2024-01-06 20:40:44 +00:00
Rob Ede
77b8dcdf59
chore: clippy
2024-01-04 04:05:56 +00:00
Rob Ede
b694c9317a
mark Cors builder as must_use
2024-01-04 03:42:10 +00:00
yhx-12243
2f30fd71a9
fix(cors): The item in "Vary" header should be "Access-Control-Request-Private-Network". ( #369 )
...
* fix(cors): vary should be "Access-Control-Request-Private-Network"
* docs(cors): update the changelog
2023-12-06 13:52:22 +00:00
Rob Ede
471f07e27f
improve actix-cors docs
2023-11-03 19:44:12 +00:00
Rob Ede
8a31f3020e
revert local-network change
...
see https://github.com/actix/actix-extras/pull/320#issuecomment-1501189129
2023-04-09 19:56:43 +01:00
Rob Ede
f37c93a2a8
migrate to doc_auto_cfg
2023-04-09 19:41:57 +01:00
Rob Ede
111d95eaea
rename private-network-access feature ( #320 )
...
* update CI with concurrency options
* cors: rename private-network => local-network
* modernize CI
* clippy
* run api diff job on all features
2023-04-09 19:35:30 +01:00
Rob Ede
ac444ca798
add support for private network access cors header ( #297 )
...
closes #294
2022-10-28 23:44:21 +01:00
Duy Do
d28ab6eaa1
CORS origin does not end with / ( #291 )
2022-09-22 11:46:24 +00:00
CapableWeb
3b5682c860
Add block_on_origin_mismatch option to middleware ( #287 )
...
Co-authored-by: CapableWeb <capableweb@domain.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-09-21 23:22:20 +00:00
Marko Malenic
d98ebf2bdf
Update Cors function documentation to match behaviour ( #289 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-09-21 09:15:54 +00:00
Rob Ede
1561bda822
apply imports_granularity fmt rule
2022-09-11 21:55:40 +01:00
Rob Ede
7c3c9357e0
fix expose all headers ( #273 )
...
* fix expose all headers
* update changelog
2022-08-07 20:56:33 +01:00
Rob Ede
cfd16c5478
clippy
2022-07-21 22:20:48 +01:00
Luca Palmieri
c2f068db66
Add a new configuration parameter to refresh the TTL of the session even if unchanged ( #233 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com>
2022-07-03 21:18:14 +01:00
Luca Palmieri
8fd1772d5e
Consistent import formatting ( #237 )
2022-03-29 11:46:13 +01:00
Rob Ede
b748e7e3a7
conditionally add vary header to errors
2022-03-07 16:52:25 +00:00
Rob Ede
6fbe2eab94
allow OPTIONS requests without request-method header ( #226 )
2022-03-07 15:32:07 +00:00
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