1
0
Fork 0
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:
Dominic 2020-05-13 19:10:53 +02:00
parent 40c90e6b4a
commit 748bf65d3e
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
4 changed files with 169 additions and 1 deletions

View file

@ -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")]