3 releases (breaking)
0.4.0 | Jul 3, 2023 |
---|---|
0.3.0 | Apr 8, 2023 |
0.2.0 | Jun 28, 2022 |
#6 in #produce
43KB
796 lines
Documentation & community resources
- User Guide
- API Documentation
- Cargo package: ntex-cors
- Minimum supported Rust version: 1.65 or later
A loose config example
ntex-cors = { package = "clia-ntex-cors-mod", version = "0.3" }
.wrap(
Cors::new()
.allowed_methods(vec![
"GET", "HEAD", "POST", "OPTIONS", "PUT", "PATCH", "DELETE",
])
.send_wildcard()
.finish(),
)
Will produce CORS headers for every request:
vary: Origin
access-control-allow-origin: *
Build statuses
Platform | Build Status |
---|---|
Linux | |
macOS | |
Windows |
Dependencies
~13–25MB
~462K SLoC