summaryrefslogtreecommitdiff
path: root/angelsharkd/src
diff options
context:
space:
mode:
Diffstat (limited to 'angelsharkd/src')
-rw-r--r--angelsharkd/src/main.rs2
1 files changed, 1 insertions, 1 deletions
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])