summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-04-05 23:39:10 +0200
committerSanto Cariotti <santo@dcariotti.me>2021-04-05 23:39:10 +0200
commit9f28838b9b442c9f3e0e5b3b3525300676834c71 (patch)
tree162a68e54b651925fd1cee51edd6802338ea15be /src
parentec0a5a53e2ce9a994701e4a4136834cece2ec184 (diff)
chore: make CLIENT env mandatorymain
Diffstat (limited to 'src')
-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,