1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00
Commit Graph

74 Commits

Author SHA1 Message Date
695369f02f feat: added PartialEq to Cors (#486)
* added PartialEq to Cors

* added a changelog entry

* re-ran rustfmt

* removed a subtle bug in the new testcase

* removed a not so subtle bug in the new testcase

* ci: rm public-api-diff job

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
2025-01-13 23:22:00 +00:00
48646d1bd3 build(deps): update derive_more to v1.0 (#458)
* build(deps): update derive_more to v1.0

* chore: remove overspecified deps

* chore: use from the derive module

* chore: restore unrelated version reqs

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-08-18 14:21:56 +00:00
023158cfa8 chore: move lints to manifest 2024-06-20 02:14:35 +01:00
433c926503 chore: address clippy lints 2024-06-09 23:08:20 +01:00
a5f5e31a82 chore: remove redundant imports 2024-02-19 16:18:17 +00:00
8b4e8ea34e chore(actix-session): prepare release 0.9.0 2024-01-11 04:27:56 +00:00
d55fc6d7f5 fix!(cors): default block_on_origin_mismatch to false (#379) 2024-01-06 20:40:44 +00:00
77b8dcdf59 chore: clippy 2024-01-04 04:05:56 +00:00
b694c9317a mark Cors builder as must_use 2024-01-04 03:42:10 +00:00
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
471f07e27f improve actix-cors docs 2023-11-03 19:44:12 +00:00
8a31f3020e revert local-network change
see https://github.com/actix/actix-extras/pull/320#issuecomment-1501189129
2023-04-09 19:56:43 +01:00
f37c93a2a8 migrate to doc_auto_cfg 2023-04-09 19:41:57 +01:00
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
ac444ca798 add support for private network access cors header (#297)
closes #294
2022-10-28 23:44:21 +01:00
d28ab6eaa1 CORS origin does not end with / (#291) 2022-09-22 11:46:24 +00:00
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
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
1561bda822 apply imports_granularity fmt rule 2022-09-11 21:55:40 +01:00
7c3c9357e0 fix expose all headers (#273)
* fix expose all headers

* update changelog
2022-08-07 20:56:33 +01:00
cfd16c5478 clippy 2022-07-21 22:20:48 +01:00
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
8fd1772d5e Consistent import formatting (#237) 2022-03-29 11:46:13 +01:00
b748e7e3a7 conditionally add vary header to errors 2022-03-07 16:52:25 +00:00
6fbe2eab94 allow OPTIONS requests without request-method header (#226) 2022-03-07 15:32:07 +00:00
a1d0f051b7 fix typo 2022-03-04 17:39:32 +00:00
73a5ae98b6 update actix-web dependency to 4.0 2022-02-25 23:05:11 +00:00
695800c9bd add vary header to all handled responses (#224) 2022-02-07 16:34:01 +00:00
ab3615b8d5 relax body bounds (#223) 2022-02-07 02:30:26 +00:00
323d01fcca bump actix-web to 4.0.0-rc.1 2022-02-03 22:33:47 +00:00
6d6b045b3a add access-control-request-* headers to vary response header 2022-01-01 23:05:29 +00:00
6676a50944 actix-web beta 15 updates (#216) 2021-12-18 03:37:23 +00:00
0805f2b1c6 stop cloning request across service call (#213) 2021-12-13 02:49:27 +00:00
74ec115161 migrate to actix-web beta 14 (#209) 2021-12-11 16:05:21 +00:00
56051786a6 standardize future types to ones from actix_utils 2021-12-08 07:29:12 +00:00
ec66754c0d standardize crate level lints 2021-12-08 06:11:13 +00:00
13f8dcb717 update to aw beta 9 2021-11-22 23:11:58 +00:00
45643d4035 fix cors expose_any_header behavior (#204) 2021-10-21 15:47:56 +01:00
50621bae71 cors: make middleware generic over body type (#195) 2021-09-13 11:00:58 +01:00
e10937103e fmt with new width 2021-08-30 23:27:44 +01:00
20ef05c36e fix doctest ci (#188) 2021-06-27 07:02:38 +01:00
2254a429d4 use forward_ready for service definitions 2021-03-22 05:18:59 +00:00
ca85f6b245 Update dependencies (Tokio 1.0) (#144) 2021-03-21 22:50:26 +00:00
d77c908567 update Cors::allow_origin_fn docs 2021-01-03 22:35:52 +00:00
cf970ee091 Fix expose_any_header setter (#143) 2020-12-31 21:13:36 +09:00
0b2eff9384 Fix allow_any_header setter (#121) 2020-11-05 18:38:27 +00:00
f20b724830 cors origin validator function receives origin as first parameter (#120) 2020-10-19 19:30:46 +01:00
6084c47810 CORS builder rework (#119) 2020-10-19 05:51:31 +01:00
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
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