summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 6ac5d2b..865a445 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -43,10 +43,7 @@ async fn main() -> std::io::Result<()> {
.wrap(middleware::Logger::default())
.wrap(
Cors::default()
- .allowed_origin(
- &env::var("CLIENT")
- .unwrap_or("http://localhost:8080".to_string())[..]
- )
+ .allowed_origin(&env::var("CLIENT").unwrap())
.allowed_methods(vec!["GET", "POST", "DELETE"])
.allowed_headers(vec![
header::AUTHORIZATION,