Crates.io | clia-ntex-cors-mod |
lib.rs | clia-ntex-cors-mod |
version | 0.4.0 |
source | src |
created_at | 2022-06-28 07:13:54.683103 |
updated_at | 2023-07-03 13:26:04.097692 |
description | A mod to ntex-cors, not requiring an 'ORIGIN' header to produce CORS header. |
homepage | https://ntex.rs |
repository | https://github.com/clia-mod/ntex-extras.git |
max_upload_size | |
id | 614667 |
size | 43,924 |
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: *
Platform | Build Status |
---|---|
Linux | |
macOS | |
Windows |