mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
cors for non-preflight requests
This commit is contained in:
parent
40c90e6b4a
commit
748bf65d3e
4 changed files with 169 additions and 1 deletions
|
@ -285,6 +285,15 @@ pub use auth::{
|
|||
StaticAuthHandler
|
||||
};
|
||||
|
||||
#[cfg(feature = "cors")]
|
||||
mod cors;
|
||||
#[cfg(feature = "cors")]
|
||||
pub use cors::{
|
||||
handle_cors,
|
||||
CorsConfig,
|
||||
Origin
|
||||
};
|
||||
|
||||
pub mod matcher;
|
||||
|
||||
#[cfg(feature = "openapi")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue