diff options
Diffstat (limited to 'angelsharkd')
-rw-r--r-- | angelsharkd/Cargo.toml | 2 | ||||
-rw-r--r-- | angelsharkd/src/main.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/angelsharkd/Cargo.toml b/angelsharkd/Cargo.toml index 9a5c750..e855789 100644 --- a/angelsharkd/Cargo.toml +++ b/angelsharkd/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "angelsharkd" -version = "0.1.0" +version = "0.1.1" edition = "2018" authors = ["Adam T. Carpenter <adam.carpenter@adp.com>"] description = "A HTTP interface into one or more Communication Managers" diff --git a/angelsharkd/src/main.rs b/angelsharkd/src/main.rs index 22e4161..8a8a53e 100644 --- a/angelsharkd/src/main.rs +++ b/angelsharkd/src/main.rs @@ -30,7 +30,7 @@ async fn main() -> Result<()> { let routes = routes::index() .or(routes::ossi(&config)) - .with(if config.debug_mode { + .with(if config.debug_mode || config.origin == "*" { warp::cors() .allow_any_origin() .allow_methods(&[Method::GET, Method::POST]) |